Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from bottle import get, post, run, route, request, response
- @route('/hello')
- def hello():
- return "Hello World!"
- @get('/login')
- def login():
- username = request.params.username
- password = request.params.password
- a = request.params.a;
- #insert spice function here and output the result as json array
- return str(username + " " + password)
- run(host='localhost', port=8080, debug=True)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement