auth-check-middleware
Some checks failed
deploy / deploy (push) Failing after 1m6s

This commit is contained in:
2023-12-17 14:42:04 +03:00
parent f061d8a523
commit 01d7935cbd
6 changed files with 49 additions and 16 deletions

View File

@@ -9,6 +9,7 @@ from sentry_sdk.integrations.strawberry import StrawberryIntegration
from strawberry.asgi import GraphQL
from starlette.applications import Starlette
from services.auth import TokenMiddleware
from services.rediscache import redis
from resolvers.listener import reactions_worker
from resolvers.schema import schema
@@ -49,4 +50,5 @@ async def shutdown():
app = Starlette(debug=True, on_startup=[start_up], on_shutdown=[shutdown])
app.add_middleware(TokenMiddleware)
app.mount("/", GraphQL(schema, debug=True))