service_man/api/app.py

14 lines
203 B
Python
Raw Normal View History

2024-03-04 07:12:29 +03:00
from fastapi import FastAPI
2024-03-04 13:15:28 +03:00
from api.router.user import router as user_router
2024-03-04 07:12:29 +03:00
def create_app() -> FastAPI:
app = FastAPI()
2024-03-11 07:48:04 +03:00
2024-03-04 13:15:28 +03:00
app.include_router(user_router)
2024-03-04 07:12:29 +03:00
return app
app = create_app()