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 = """ """