summaryrefslogtreecommitdiff
path: root/main.py
blob: 9fee2fe2c48ff7d4d22c2a05ead7d7e32151742a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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='localhost', port=8080, debug=True)