mirror of
https://github.com/revanced/revanced-api.git
synced 2025-04-29 22:24:31 +02:00
12 lines
276 B
Python
12 lines
276 B
Python
import os
|
|
from sanic import Blueprint
|
|
from sanic.response import text
|
|
|
|
|
|
robots: Blueprint = Blueprint(os.path.basename(__file__).strip(".py"))
|
|
|
|
|
|
@robots.get("/robots.txt")
|
|
async def robots_txt(request):
|
|
return text("User-agent: *\nDisallow: /", content_type="text/plain")
|