Spaces:
Sleeping
Sleeping
from fastapi import FastAPI | |
from routers import user, team | |
from db import engine | |
app = FastAPI() | |
app.include_router(user.router) | |
app.include_router(team.router) | |
async def startup(): | |
await engine.connect() | |
async def shutdown(): | |
await engine.disconnect() |