16 lines
458 B
Python
16 lines
458 B
Python
from fastapi import FastAPI
|
|
|
|
from .routers import note, provider, model, config, chat
|
|
|
|
|
|
|
|
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")
|
|
app.include_router(chat.router, prefix="/api")
|
|
|
|
return app
|