mirror of
https://github.com/ReVanced/revanced-api.git
synced 2026-01-11 22:06:19 +00:00
feat: Add announcements endpoints (#91)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Alexandre Teles (afterSt0rm) <alexandre.teles@ufba.br>
This commit is contained in:
10
app.py
10
app.py
@@ -6,6 +6,9 @@ from sanic_ext import Config
|
||||
from api import api
|
||||
from config import *
|
||||
|
||||
from limiter import configure_limiter
|
||||
from auth import configure_auth
|
||||
|
||||
REDIRECTS = {
|
||||
"/": "/docs/swagger",
|
||||
}
|
||||
@@ -25,8 +28,13 @@ app.config.CORS_SUPPORTS_CREDENTIALS = True
|
||||
app.config.CORS_SEND_WILDCARD = True
|
||||
app.config.CORS_ORIGINS = "*"
|
||||
|
||||
app.blueprint(api)
|
||||
# sanic-beskar
|
||||
configure_auth(app)
|
||||
|
||||
# sanic-limiter
|
||||
configure_limiter(app)
|
||||
|
||||
app.blueprint(api)
|
||||
|
||||
# https://sanic.dev/en/guide/how-to/static-redirects.html
|
||||
|
||||
|
||||
Reference in New Issue
Block a user