fix: Update Google verification route to accept alphanumeric tokens

This commit is contained in:
2026-05-07 18:37:30 +02:00
parent 78863980a4
commit ccc46172bc
+3 -3
View File
@@ -1632,9 +1632,9 @@ def robots_txt():
)
@app.route('/google<int:token>.html')
def google_verification(token: int):
# Serve files named like google1234567890.html from the static/ directory
@app.route('/google<token>.html')
def google_verification(token):
# Serve files named like google<alphanumeric>.html from the static/ directory
filename = f"google{token}.html"
path = os.path.join(BASE_DIR, 'static', filename)
if os.path.exists(path):