Add Yandex Webmaster verification file
This commit is contained in:
+11
@@ -425,6 +425,17 @@ def admin_page(request: Request, admin: User = Depends(require_admin), db: Sessi
|
||||
|
||||
|
||||
|
||||
|
||||
@app.get("/yandex_b847b9b35f967fcc.html", include_in_schema=False)
|
||||
def yandex_verify():
|
||||
from fastapi.responses import HTMLResponse
|
||||
return HTMLResponse('''<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
</head>
|
||||
<body>Verification: b847b9b35f967fcc</body>
|
||||
</html>''')
|
||||
|
||||
@app.get("/robots.txt", include_in_schema=False)
|
||||
def robots_txt():
|
||||
from fastapi.responses import FileResponse
|
||||
|
||||
Reference in New Issue
Block a user