Replace privacy page with 301 redirect to mont.ru/ru-ru/agreement
This commit is contained in:
+5
-3
@@ -437,9 +437,11 @@ def yandex_verify():
|
|||||||
</html>''')
|
</html>''')
|
||||||
|
|
||||||
|
|
||||||
@app.get("/privacy", response_class=HTMLResponse, include_in_schema=False)
|
@app.get("/privacy", include_in_schema=False)
|
||||||
def privacy_page(request: Request):
|
def privacy_page():
|
||||||
return templates.TemplateResponse("privacy.html", {"request": request})
|
from fastapi.responses import RedirectResponse
|
||||||
|
return RedirectResponse(url="https://www.mont.ru/ru-ru/agreement", status_code=301)
|
||||||
|
|
||||||
|
|
||||||
@app.get("/robots.txt", include_in_schema=False)
|
@app.get("/robots.txt", include_in_schema=False)
|
||||||
def robots_txt():
|
def robots_txt():
|
||||||
|
|||||||
Reference in New Issue
Block a user