change(api): additional routes for managed saas
This commit is contained in:
parent
0f4635548b
commit
ef3cde706f
2 changed files with 7 additions and 1 deletions
|
|
@ -14,7 +14,7 @@ from starlette.responses import StreamingResponse
|
|||
from chalicelib.utils import helper
|
||||
from chalicelib.utils import pg_client
|
||||
from crons import core_crons, core_dynamic_crons
|
||||
from routers import core, core_dynamic
|
||||
from routers import core, core_dynamic, additional_routes
|
||||
from routers.subs import insights, metrics, v1_api, health, usability_tests
|
||||
|
||||
loglevel = config("LOGLEVEL", default=logging.WARNING)
|
||||
|
|
@ -121,6 +121,8 @@ app.include_router(usability_tests.public_app)
|
|||
app.include_router(usability_tests.app)
|
||||
app.include_router(usability_tests.app_apikey)
|
||||
|
||||
app.include_router(additional_routes.app)
|
||||
|
||||
# @app.get('/private/shutdown', tags=["private"])
|
||||
# async def stop_server():
|
||||
# logging.info("Requested shutdown")
|
||||
|
|
|
|||
4
api/routers/additional_routes.py
Normal file
4
api/routers/additional_routes.py
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
# this file will be overwritten by the managed saas
|
||||
from routers.base import get_routers
|
||||
|
||||
public_app, app, app_apikey = get_routers()
|
||||
Loading…
Add table
Reference in a new issue