From 926ceb23e7554e41e402f4c41b71e2fe36697fc2 Mon Sep 17 00:00:00 2001 From: maaa Date: Mon, 10 Jul 2023 03:07:04 +0200 Subject: [PATCH] test --- main | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main b/main index e9b6bda..760814f 100644 --- a/main +++ b/main @@ -28,6 +28,7 @@ PASSWORD_REQUIREMENT = config["config"]["PASSWORD_REQUIREMENT"] app = Flask(__name__) app.config["SECRET_KEY"] = SECRET_KEY +app.config["SERVER_NAME"] = "burger.ctaposter.xyz" app.config["MAX_CONTENT_LENGTH"] = int(UPLOAD_LIMIT) * 1000 * 1000 app.wsgi_app = ProxyFix(app.wsgi_app, x_for=1) @@ -156,7 +157,7 @@ def user(pageusername): else: return """""", 404 -@app.route("/api/page/", methods=("GET", "POST")) +@app.route("/api/page/", subdomain="pages", methods=("GET", "POST")) def apipageuser(userid): pageuser = get_user(userid) addhtml = """ """