Browse Source

401 all auth_request that are not GET

causefx 7 years ago
parent
commit
66f9f3dfb8
1 changed files with 1 additions and 3 deletions
  1. 1 3
      api/index.php

+ 1 - 3
api/index.php

@@ -1157,9 +1157,7 @@ switch ($function) {
 				auth();
 				break;
 			default:
-				$result['status'] = 'error';
-				$result['statusText'] = 'The function requested is not defined for method: ' . $method;
-				break;
+				exit(http_response_code(401));
 		}
 		break;
 	case 'v1_plugin':