update
This commit is contained in:
@@ -10,7 +10,8 @@ from routes import router
|
||||
|
||||
@asynccontextmanager
|
||||
async def lifespan(app: FastAPI):
|
||||
(STORAGE_DIR / "html").mkdir(parents=True, exist_ok=True)
|
||||
(STORAGE_DIR / "guides").mkdir(parents=True, exist_ok=True)
|
||||
(STORAGE_DIR / "bausteine").mkdir(parents=True, exist_ok=True)
|
||||
await init_db()
|
||||
yield
|
||||
await close_db()
|
||||
|
||||
Reference in New Issue
Block a user