Skip to content

Commit 0fdfd23

Browse files
committed
Create a dependency function to be used with Depends
Signed-off-by: Federico Busetti <[email protected]>
1 parent 948595a commit 0fdfd23

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/http_app/dependencies.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
from common import AppConfig
2+
from http_app import context
3+
4+
5+
def app_config() -> AppConfig:
6+
return context.app_config.get()

0 commit comments

Comments
 (0)