Advertisement
Guest User

Untitled

a guest
Sep 19th, 2019
164
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. from gluon.tools import Service
  2. service = Service()
  3.  
  4. def call():
  5. return service()
  6.  
  7. @service.json
  8. def myapi(a,b):
  9. print("got: ",a,b)
  10. #concat two strings
  11. result = a+b
  12. return dict(result=result,status="success")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement