Update: 2026-05-08 04:58:23
This commit is contained in:
15
app/modules_app/gamification/profile.php
Normal file
15
app/modules_app/gamification/profile.php
Normal file
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
/**
|
||||
* Gamification Profile
|
||||
* GET /v1/gamification/profile
|
||||
* Returns user's points, level, badges, and progress.
|
||||
*/
|
||||
|
||||
use App\Services\GamificationService;
|
||||
use App\Middleware\AuthMiddleware;
|
||||
|
||||
$decoded = AuthMiddleware::check();
|
||||
|
||||
$profile = GamificationService::getProfile($decoded['user_id'], $decoded['tenant_id']);
|
||||
|
||||
json_success($profile, 'ملفك التنافسي');
|
||||
Reference in New Issue
Block a user