add callback for saas app

This commit is contained in:
dni ⚡
2022-10-10 23:27:46 +02:00
parent a3b05e26b7
commit 91a5f7d214
5 changed files with 37 additions and 15 deletions
+1 -1
View File
@@ -64,7 +64,7 @@ def create_app() -> FastAPI:
# TODO: why those 2?
g().config = settings
# g().base_url = f"http://{settings.host}:{settings.port}"
g().base_url = f"http://{settings.host}:{settings.port}"
app.add_middleware(GZipMiddleware, minimum_size=1000)