Created individual categories page
Signed-off-by: rodude123 <rodude123@gmail.com>
This commit is contained in:
Vendored
+3
-1
@@ -1,5 +1,7 @@
|
||||
<?php
|
||||
|
||||
namespace api\project;
|
||||
|
||||
use api\utils\imgUtils;
|
||||
use PDO;
|
||||
use Psr\Http\Message\UploadedFileInterface;
|
||||
@@ -162,7 +164,7 @@ class projectData
|
||||
* @param UploadedFileInterface $img - Image preview of the project
|
||||
* @return string|array - String with error message or array with the new image location
|
||||
*/
|
||||
public function uploadImage(int $ID, UploadedFileInterface $img): string | array
|
||||
public function uploadImage(int $ID, UploadedFileInterface $img): string|array
|
||||
{
|
||||
|
||||
$conn = dbConn();
|
||||
|
||||
Vendored
+2
-1
@@ -1,4 +1,5 @@
|
||||
<?php
|
||||
|
||||
namespace api\project;
|
||||
require_once __DIR__ . "/../utils/routesInterface.php";
|
||||
require_once "projectData.php";
|
||||
@@ -37,7 +38,7 @@ class projectRoutes implements routesInterface
|
||||
|
||||
$response->getBody()->write($json);
|
||||
|
||||
if(array_key_exists("errorMessage", $result))
|
||||
if (array_key_exists("errorMessage", $result))
|
||||
{
|
||||
$response->withStatus(404);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user