Add tutorial page, favicon.

- The tutorial is written in markdown and transformed into HTML via Javascript, so anyone can edit it without knowledge of web development.
This commit is contained in:
Chris Wilson
2020-07-31 19:59:33 -04:00
parent 49189bec02
commit d5d6c717e0
6 changed files with 99 additions and 0 deletions

View File

@@ -72,6 +72,11 @@ def register_session():
session["_id"] = uuid4() # uniquely identify each session without needing a login
@app.route('/tutorial')
def readme():
return render_template("tutorial.html")
@app.route('/seed/<suuid:seed>')
def view_seed(seed: UUID):
seed = Seed.get(id=seed)
@@ -123,5 +128,10 @@ def host_room(room: UUID):
return render_template("host_room.html", room=room)
@app.route('/<filename>', methods=['GET'])
def static_file(filename: str):
return app.send_static_file(filename)
from WebHostLib.customserver import run_server_process
from . import tracker, upload, landing, check # to trigger app routing picking up on it