@ -14,7 +14,7 @@ class ApiController extends BaseController
*/
public function index()
{
$user = \App\Models\User::find(0);
$user = \App\Models\User::find(auth()->id);
if (!$user) {
return $this->errorResponse('User not found', 404);