DWDeathermap/routes.py
2022-12-29 09:02:15 +01:00

10 lines
250 B
Python

import re
from flask import render_template
import SETTINGS
def web_root(match: re.Match):
print(match.string)
return render_template("index.html", flask_name=SETTINGS.FLASK_NAME)
ROUTES = {r"^/$": web_root, r"^([A-Za-z0-9/]*)$": web_root}