summaryrefslogtreecommitdiff
path: root/app.py
blob: ca7e5d7b98afb2f1f021fc4ef26a43f5130434c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
from bottle import Bottle, run, debug, static_file
from bottle import jinja2_template as template

app = Bottle()

@app.route("/")
@app.route("/index.html")
def index():
    return template("index")

@app.route("/static/<filename>")
def server_static(filename):
    return static_file(filename, root="./static/")

debug(True)
run(app, host='localhost', port=8080, reloader=True)