|
@@ -5,6 +5,7 @@ namespace App\Http\Controllers\Api;
|
|
|
|
|
|
|
|
|
|
use App\Enums\ApiEnum;
|
|
use App\Enums\ApiEnum;
|
|
|
|
+use App\Exceptions\AuthException;
|
|
use App\Http\Params\UserCommentParam;
|
|
use App\Http\Params\UserCommentParam;
|
|
use App\Http\Params\UserLikeParam;
|
|
use App\Http\Params\UserLikeParam;
|
|
use App\Models\UserPhotoDestroy;
|
|
use App\Models\UserPhotoDestroy;
|
|
@@ -93,6 +94,8 @@ class HomeController extends Controller
|
|
$res = $this->homeService->user_detail($request->user_id);
|
|
$res = $this->homeService->user_detail($request->user_id);
|
|
}catch (\Exception $exception){
|
|
}catch (\Exception $exception){
|
|
return $this->response->errorForbidden($exception->getMessage());
|
|
return $this->response->errorForbidden($exception->getMessage());
|
|
|
|
+ }catch (AuthException $exception){
|
|
|
|
+ return $this->response->errorUnauthorized($exception->getMessage());
|
|
}
|
|
}
|
|
return response()->json($res);
|
|
return response()->json($res);
|
|
}
|
|
}
|