Add Base Controller

pull/2/head
sundayenglish 3 weeks ago
parent 282ba7bfee
commit 5414948a59
  1. 2
      Modules/Api/app/Http/Controllers/ApiController.php

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

Loading…
Cancel
Save