Fix updateUserInfo endpoint
This commit is contained in:
parent
e38bef492e
commit
fd91f7985d
|
@ -1,5 +1,5 @@
|
|||
<?php
|
||||
if($_SERVER['REQUEST_METHOD'] == 'UPDATE') {
|
||||
if($_SERVER['REQUEST_METHOD'] == 'PATCH') {
|
||||
if(!isset($_REQUEST['token'])) {
|
||||
$data = [
|
||||
'error' => true,
|
||||
|
@ -28,7 +28,7 @@
|
|||
else {
|
||||
$data = [
|
||||
'error' => true,
|
||||
'message' => 'Только UPDATE метод',
|
||||
'message' => 'Только PATCH метод',
|
||||
];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue