Created
July 23, 2014 06:48
-
-
Save mengzhuo/89ae5dee035a1985a738 to your computer and use it in GitHub Desktop.
SImple API echo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from bottle import route, run | |
@route('/echo') | |
def echo(): | |
return {'status':'ok'} | |
run(host='0.0.0.0', port=8998, reloader=False, | |
reloader=False, quiet=True, server='gevent') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment