Fix updateUserInfo endpoint

This commit is contained in:
BitHeaven 2024-08-09 21:57:39 +05:00
parent e38bef492e
commit fd91f7985d
1 changed files with 2 additions and 2 deletions

View File

@ -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 метод',
];
}