mirror of
https://github.com/JefferyHcool/BiliNote.git
synced 2026-05-07 06:42:48 +08:00
15 lines
401 B
Python
15 lines
401 B
Python
from fastapi import FastAPI
|
|
|
|
from .routers import note, provider, model, config
|
|
|
|
|
|
|
|
def create_app(lifespan) -> FastAPI:
|
|
app = FastAPI(title="BiliNote",lifespan=lifespan)
|
|
app.include_router(note.router, prefix="/api")
|
|
app.include_router(provider.router, prefix="/api")
|
|
app.include_router(model.router,prefix="/api")
|
|
app.include_router(config.router, prefix="/api")
|
|
|
|
return app
|