mirror of
https://github.com/revanced/revanced-api.git
synced 2025-04-29 22:24:31 +02:00
chore: Merge dev
to main
This commit is contained in:
commit
3404b53b26
@ -9,7 +9,17 @@ from api.compat import github as compat
|
||||
from api.donations import donations
|
||||
from api.announcements import announcements
|
||||
from api.login import login
|
||||
from api.robots import robots
|
||||
|
||||
api = Blueprint.group(
|
||||
login, ping, github, info, socials, donations, announcements, compat, url_prefix="/"
|
||||
login,
|
||||
ping,
|
||||
github,
|
||||
info,
|
||||
socials,
|
||||
donations,
|
||||
announcements,
|
||||
compat,
|
||||
robots,
|
||||
url_prefix="/",
|
||||
)
|
||||
|
10
api/robots.py
Normal file
10
api/robots.py
Normal file
@ -0,0 +1,10 @@
|
||||
from sanic import Blueprint
|
||||
from sanic.response import text
|
||||
|
||||
|
||||
robots: Blueprint = Blueprint("robots")
|
||||
|
||||
|
||||
@robots.get("/robots.txt")
|
||||
async def robots_txt(request):
|
||||
return text("User-agent: *\nDisallow: /", content_type="text/plain")
|
@ -1,6 +1,6 @@
|
||||
from sqlalchemy import create_engine
|
||||
from sqlalchemy.orm import sessionmaker
|
||||
|
||||
engine = create_engine("sqlite:///persistance/database.db")
|
||||
|
||||
Session = sessionmaker(bind=engine)
|
||||
from sqlalchemy import create_engine
|
||||
from sqlalchemy.orm import sessionmaker
|
||||
|
||||
engine = create_engine("sqlite:///persistance/database.db", pool_size=20)
|
||||
|
||||
Session = sessionmaker(bind=engine)
|
||||
|
Loading…
x
Reference in New Issue
Block a user