feat: add community contribution ranks
This commit is contained in:
13
apps/gamification/api/views.py
Normal file
13
apps/gamification/api/views.py
Normal file
@@ -0,0 +1,13 @@
|
||||
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)
|
||||
Reference in New Issue
Block a user