add robots.txt (#1383)
This commit is contained in:
parent
dcf5f0adaa
commit
ffb5a91f67
1 changed files with 9 additions and 0 deletions
|
|
@ -43,6 +43,15 @@ async def home(request: Request, lightning: str = ""):
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
@core_html_routes.get("/robots.txt", response_class=HTMLResponse)
|
||||||
|
async def robots():
|
||||||
|
data = """
|
||||||
|
User-agent: *
|
||||||
|
Disallow: /
|
||||||
|
"""
|
||||||
|
return HTMLResponse(content=data, media_type="text/plain")
|
||||||
|
|
||||||
|
|
||||||
@core_html_routes.get(
|
@core_html_routes.get(
|
||||||
"/extensions", name="core.extensions", response_class=HTMLResponse
|
"/extensions", name="core.extensions", response_class=HTMLResponse
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue