Advertisement
Guest User

Untitled

a guest
Nov 10th, 2016
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. from bottle import get, post, run, route, request, response
  2.  
  3. @route('/hello')
  4. def hello():
  5. return "Hello World!"
  6.  
  7.  
  8. @get('/login')
  9. def login():
  10. username = request.params.username
  11. password = request.params.password
  12. a = request.params.a;
  13.  
  14. #insert spice function here and output the result as json array
  15. return str(username + " " + password)
  16.  
  17.  
  18. run(host='localhost', port=8080, debug=True)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement