From cb45111c80ba9a52662f34d91bba6779a6289e2b Mon Sep 17 00:00:00 2001 From: Christian Kuhtz Date: Tue, 16 Jul 2024 05:22:08 +0000 Subject: [PATCH] comments --- api/api.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/api/api.py b/api/api.py index ed7d1fa..98a86a8 100644 --- a/api/api.py +++ b/api/api.py @@ -25,9 +25,12 @@ # see https://fastapi.tiangolo.com/deployment/docker/#replication-number-of-processes for comment on worker counts - # start API + # check env and use defaults if not present env = check_env_vars() + + # add REST routes + api.include_router(configuration_router, prefix='/config') logger.debug('/config route defined.') api.include_router(database_router, prefix='/db') @@ -37,6 +40,8 @@ api.include_router(test_router, prefix='/test') logger.debug('/test route defined.') + # start API + api.run( app='__main__:api', host=str(env['LISTENER_HOST']),