mirror of
https://github.com/lnbits/lnbits.git
synced 2025-10-10 20:42:32 +02:00
add robots.txt (#1383)
This commit is contained in:
@@ -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
|
||||||
)
|
)
|
||||||
|
Reference in New Issue
Block a user