提交初始文件,增加授权应用路由

This commit is contained in:
18610128193
2026-06-10 10:47:18 +08:00
parent d8bfebdcfb
commit b24c176b88
6 changed files with 590 additions and 1 deletions
+1 -1
View File
@@ -5,6 +5,6 @@ router = APIRouter(prefix="/test", tags=["test"])
@router.get("/index")
async def test(req: Request):
async def test(req: Request,current_user: User = Depends(get_current_user)):
return {"message": "test","code":200}