22 lines
No EOL
393 B
Python
22 lines
No EOL
393 B
Python
from fastapi import FastAPI
|
|
|
|
from app.config import settings
|
|
from app.database import create_database
|
|
from app.routers import example_route, project_route
|
|
|
|
app = FastAPI(
|
|
title=settings.app_name,
|
|
version=settings.app_version
|
|
)
|
|
|
|
@app.on_event("startup")
|
|
def startup():
|
|
create_database()
|
|
|
|
app.include_router(
|
|
example_route.router
|
|
)
|
|
|
|
app.include_router(
|
|
project_route.router
|
|
) |