mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user