blob: c58833cb13bf2c2f08c430b1b2a80f076a1edfed (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
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("/join.html")
def join_form():
return template("join")
@app.route("/<type:re:styles|images>/<filename>")
def server_static(type, filename):
return static_file(filename, root=f"./static/{type}/")
debug(True)
run(app, host='localhost', port=8080, reloader=True)
|