API/app/main.py

9 lines
228 B
Python
Executable File

from fastapi import FastAPI, Depends
from app import auth, user, server
app = FastAPI()
app.include_router(auth.router)
app.include_router(user.router)
app.include_router(server.router, dependencies=[Depends(auth.authorise)])