blitz_api/app/setup
fusion44 25e4be8441 feat: make config loading more flexible
If the environment variable BAPI_ENV_PATH is set, the config system will
try to read configs from the given path instead of .env in pwd

If no file is found .env in pwd will be used as a fallback

Env variables will always override settings in .env files.
2025-03-23 17:43:39 +01:00
..
impl feat: implement Ruff as a linter; fix given errors 2023-06-25 07:17:00 +02:00
__init__.py refactor: switch to domain driven directory layout 2022-10-03 20:22:00 +02:00
README.md refactor: switch to domain driven directory layout 2022-10-03 20:22:00 +02:00
router.py feat: make config loading more flexible 2025-03-23 17:43:39 +01:00

Setup

Since the setup is not highly specific to the underlying platform, we don't provide an abstraction to it like in the other parts of the framework. Instead, the platform implementation itself should provide a router that is simply attached to the main router in main.py by the API.