Update
This commit is contained in:
parent
827525b8d7
commit
d7b9f15936
|
@ -10,6 +10,7 @@ from fastapi import (
|
|||
# Request,
|
||||
)
|
||||
from fastapi.responses import JSONResponse
|
||||
from fastapi.responses import PlainTextResponse
|
||||
|
||||
|
||||
from .repository import DatingRepository
|
||||
|
@ -70,3 +71,9 @@ async def add_dating(dating: SDatingAdd = Body()) -> JSONResponse:
|
|||
# response = JSONResponse(content=content)
|
||||
# response.set_cookie(key="fakesession", value="fake-cookie-session-value")
|
||||
# return response
|
||||
|
||||
|
||||
@router.get("/robots.txt", response_class=PlainTextResponse)
|
||||
def robots():
|
||||
data = """User-agent: *\nAllow: /\nSitemap: https://lerafoxqueen.ru/sitemap.xml"""
|
||||
return data
|
||||
|
|
Loading…
Reference in New Issue