fix: Update Google verification route to accept alphanumeric tokens
This commit is contained in:
+3
-3
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user