API/app/main.py

9 lines
228 B
Python
Raw Normal View History

2022-01-12 07:48:18 +00:00
from fastapi import FastAPI, Depends
from app import auth, user, server
2021-09-12 08:45:44 +00:00
app = FastAPI()
2022-01-12 07:48:18 +00:00
app.include_router(auth.router)
app.include_router(user.router)
app.include_router(server.router, dependencies=[Depends(auth.authorise)])