Update profile

This commit is contained in:
DESKTOP-GBA0BK8\Admin
2023-04-23 05:36:37 -04:00
parent 5aa9f6793a
commit 2d49e5fb46
3 changed files with 27 additions and 16 deletions
+4 -4
View File
@@ -79,10 +79,10 @@ if ("OPTIONS" === $_SERVER['REQUEST_METHOD']) {
$endpoint = strtolower(str_replace('/svs/user/', '', strtok($_SERVER['REQUEST_URI'], '?')));
$id = 0; // update, get & delete actions require ID
if (substr($endpoint, 0, 19) == 'gettransportrequest' || substr($endpoint, 0, 13) == 'updateprofile') {
$endpoint = strtok($endpoint, '/');
$id = strtok('/');
}
//if (substr($endpoint, 0, 19) == 'gettransportrequest' || substr($endpoint, 0, 13) == 'updateprofile') {
// $endpoint = strtok($endpoint, '/');
// $id = strtok('/');
//}
if (!isset($endpoints[$endpoint])) {
header('HTTP/1.1 400 Bad Request');