aboutsummaryrefslogtreecommitdiffstats
path: root/thallium-backend/src/app.py
diff options
context:
space:
mode:
authorGravatar Chris Lovering <[email protected]>2024-08-18 20:16:38 +0100
committerGravatar Chris Lovering <[email protected]>2024-08-18 20:16:38 +0100
commit26954a4862bc33a0eab68d6b8992efdf038687d4 (patch)
tree9526e227a27d09f21417d4e8eca61240bae8e1dc /thallium-backend/src/app.py
parentForward correct path to localhost in compose file (diff)
Add debug router for debugging endpoints
Diffstat (limited to 'thallium-backend/src/app.py')
-rw-r--r--thallium-backend/src/app.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/thallium-backend/src/app.py b/thallium-backend/src/app.py
index 27ec8ab..5907348 100644
--- a/thallium-backend/src/app.py
+++ b/thallium-backend/src/app.py
@@ -4,12 +4,13 @@ from fastapi import FastAPI, Request
from fastapi.exceptions import RequestValidationError
from fastapi.responses import JSONResponse
+from src.routes import top_level_router
from src.settings import CONFIG
log = logging.getLogger(__name__)
-
fastapi_app = FastAPI(debug=CONFIG.debug)
+fastapi_app.include_router(top_level_router)
@fastapi_app.get("/heartbeat")