mirror of
https://github.com/fastapi-admin/fastapi-admin.git
synced 2025-08-16 20:11:39 +08:00
10 lines
312 B
Python
10 lines
312 B
Python
from fastapi import Depends
|
|
|
|
from ..depends import jwt_required
|
|
from ..factory import app
|
|
from . import other, rest, site
|
|
|
|
app.include_router(site.router)
|
|
app.include_router(other.router, dependencies=[Depends(jwt_required)])
|
|
app.include_router(rest.router, dependencies=[Depends(jwt_required)], prefix="/rest")
|