statusCode + Dockerfile
continuous-integration/drone/push Build is failing Details

pull/3/head
remrem 1 year ago
parent b3ea383379
commit 64786e316d

@ -8,3 +8,5 @@ RUN composer update && composer install
RUN a2enmod rewrite RUN a2enmod rewrite
RUN a2enmod actions RUN a2enmod actions
RUN service apache2 restart RUN service apache2 restart
RUN mkdir /home/hel/smartfit_hdd
RUN chmod 755 /home/hel/smartfit_hdd

@ -29,7 +29,7 @@ return function (App $app) {
return $res->withStatus(400); return $res->withStatus(400);
} }
$code = (new UserGateway)->createUser($req_body['email'], $req_body['hash'], $req_body['username']); $code = (new UserGateway)->createUser($req_body['email'], $req_body['hash'], $req_body['username']);
if($code === -1) return $res->withStatus(500); if($code === -1) return $res->withStatus(409);
$res->getBody()->write(json_encode($code)); $res->getBody()->write(json_encode($code));
return $res; return $res;

Loading…
Cancel
Save