15 lines
327 B
Python
15 lines
327 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='localhost', port=8080, debug=True)
|