Skip to content

Commit

Permalink
forgot to add auth in the app as router
Browse files Browse the repository at this point in the history
  • Loading branch information
Unischneider committed Nov 2, 2024
1 parent 9fbf40a commit 4e34c08
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/main.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import logging

from app.utils.setup_logging import setup_logging

setup_logging()
Expand All @@ -11,7 +12,7 @@
from fastapi.responses import ORJSONResponse
from starlette.responses import JSONResponse

from app.api.question_router import router as question_router
from app.api.question_router import router as question_router, auth
from app.utils.dependencies import shutdown_model

logging.info("Starting application...")
Expand Down Expand Up @@ -47,6 +48,7 @@ async def validation_exception_handler(request: Request, exc: RequestValidationE


app.include_router(router=question_router)
app.include_router(router=auth)

if __name__ == "__main__":
logging.info("Starting FastAPI server")
Expand Down

0 comments on commit 4e34c08

Please sign in to comment.