Skip to content

Commit

Permalink
comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ckuhtz committed Jul 16, 2024
1 parent ab6ad91 commit cb45111
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion api/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand All @@ -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']),
Expand Down

0 comments on commit cb45111

Please sign in to comment.