diff --git a/flextype/api/delivery/entries.php b/flextype/api/delivery/entries.php index 29f638bd..d2f32ba6 100644 --- a/flextype/api/delivery/entries.php +++ b/flextype/api/delivery/entries.php @@ -39,7 +39,6 @@ $app->get('/api/delivery/entries', function (Request $request, Response $respons // Validate delivery token if (validate_delivery_entries_token($request, $flextype)) { - $delivery_entries_token_file_path = PATH['tokens'] . '/delivery/entries/' . $request->getQueryParams()['token'] . '/token.yaml'; // Set delivery token file @@ -66,7 +65,6 @@ $app->get('/api/delivery/entries', function (Request $request, Response $respons } else { return $response->withJson(["detail" => "Incorrect authentication credentials."], 401); } - } else { return $response->withJson(["detail" => "Incorrect authentication credentials."], 401); } diff --git a/flextype/api/delivery/images.php b/flextype/api/delivery/images.php index d2866403..abf3b1d4 100644 --- a/flextype/api/delivery/images.php +++ b/flextype/api/delivery/images.php @@ -35,7 +35,6 @@ $app->get('/api/delivery/images/{path:.+}', function (Request $request, Response // Validate delivery image token if (validate_delivery_images_token($request, $flextype)) { - $delivery_images_token_file_path = PATH['tokens'] . '/delivery/images/' . $request->getQueryParams()['token'] . '/token.yaml'; // Set delivery token file @@ -53,7 +52,6 @@ $app->get('/api/delivery/images/{path:.+}', function (Request $request, Response } else { return $response->withJson([], 404); } - } } else { return $response->withJson(["detail" => "Incorrect authentication credentials."], 401); @@ -63,7 +61,6 @@ $app->get('/api/delivery/images/{path:.+}', function (Request $request, Response } return $response->withStatus(404); - } else { return $response->withJson(["detail" => "Incorrect authentication credentials."], 401); }