ailuropoda/main.py
JJ Asghar fb83b57364 Changed port number
There are about 1600 pandas in the wild, and 300 in zoos, so this is a
new panda, hence 1901.
2016-04-28 11:23:10 -05:00

15 lines
325 B
Python

from bottle import Bottle, run, static_file
app = Bottle()
@app.route('/')
def hello():
"""Return a friendly HTTP greeting."""
return 'Hello World!'
@app.route('/v1/<filename:re:.*\.png>')
def show_pic(filename):
return static_file(filename, root='images/v1/')
run(app, host='0.0.0.0', port=1901, debug=True)