feat: Add coin rendering
All checks were successful
Build Docker / BuildImage (push) Successful in 34s
Check Code Quality / RuffCheck (push) Successful in 47s

This commit is contained in:
2025-11-20 17:14:01 +11:00
parent 65eea87568
commit ba2002574c
2 changed files with 156 additions and 2 deletions

View File

@@ -103,6 +103,12 @@ def name_route(name):
return render_template("index.html", datetime=current_datetime)
@app.route("/coin/<path:coin_hash>/<int:index>")
def coin_route(coin_hash, index):
current_datetime = datetime.now().strftime("%d %b %Y %I:%M %p")
return render_template("index.html", datetime=current_datetime)
@app.route("/<path:path>")
def catch_all(path: str):
if os.path.isfile("templates/" + path):