The sad panda API
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

main.py 327B

1234567891011121314
  1. from bottle import Bottle, run, static_file
  2. app = Bottle()
  3. @app.route('/')
  4. def hello():
  5. """Return a friendly HTTP greeting."""
  6. return 'Hello World!'
  7. @app.route('/v1/<filename:re:.*\.png>')
  8. def show_pic(filename):
  9. return static_file(filename, root='images/v1/')
  10. run(app, host='localhost', port=8080, debug=True)