mirror of
https://gh-proxy.org/https://github.com/klinsmaya/SQLBot.git
synced 2026-11-08 01:06:59 +08:00
9 lines
248 B
Python
9 lines
248 B
Python
from fastapi import APIRouter, Depends, Request
|
|
from common.core.deps import CurrentUser
|
|
|
|
router = APIRouter(tags=["user"], prefix="/user")
|
|
|
|
|
|
@router.get("/info")
|
|
async def user_info(current_user: CurrentUser):
|
|
return current_user.to_dict() |