Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from gluon.tools import Service
- service = Service()
- def call():
- return service()
- @service.json
- def myapi(a,b):
- print("got: ",a,b)
- #concat two strings
- result = a+b
- return dict(result=result,status="success")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement