1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-07 21:56:33 +02:00

feat(endpoints): update Content Endpoints #565

This commit is contained in:
Awilum
2021-08-10 20:24:37 +03:00
parent d9460c2dbc
commit 8bf347cac4

View File

@@ -28,7 +28,7 @@ class Content extends Endpoints
$queryParams = $request->getQueryParams();
// Check is utils api enabled
if (! registry()->get('flextype.settings.api.images.enabled')) {
if (! registry()->get('flextype.settings.api.content.enabled')) {
return $this->getApiResponse($response, $this->getStatusCodeMessage(400), 400);
}
@@ -372,7 +372,7 @@ class Content extends Endpoints
if (! isset($data['id'])) {
return $this->getApiResponse($response, $this->getStatusCodeMessage(400), 400);
}
// Check is token exists
if (! tokens()->has($data['token'])) {
return $this->getApiResponse($response, $this->getStatusCodeMessage(401), 401);