14 lines
389 B
Python
14 lines
389 B
Python
from ninja import Router
|
|
|
|
from apps.gamification.api.schemas import GamificationSummarySchema
|
|
from apps.gamification.services import summary_for_user
|
|
from core.authentication import jwt_auth
|
|
|
|
|
|
gamification_router = Router()
|
|
|
|
|
|
@gamification_router.get("/me", response=GamificationSummarySchema, auth=jwt_auth)
|
|
def my_gamification_summary(request):
|
|
return summary_for_user(request.auth)
|