|
|
@ -123,7 +123,13 @@ class APIControl
|
|
|
|
case "settings":
|
|
|
|
case "settings":
|
|
|
|
$token = $request->getHeader("fipamo-access-token");
|
|
|
|
$token = $request->getHeader("fipamo-access-token");
|
|
|
|
if (Session::verifyToken($token[0])) {
|
|
|
|
if (Session::verifyToken($token[0])) {
|
|
|
|
$result = SettingsAPI::handleSettingsTask($request, $args, $body);
|
|
|
|
if (isset($body)) {
|
|
|
|
|
|
|
|
$postBody = $body;
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
$postBody = null;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$result = SettingsAPI::handleSettingsTask($request, $args, $postBody);
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
$result = [
|
|
|
|
$result = [
|
|
|
|
"message" => "API access denied, homie",
|
|
|
|
"message" => "API access denied, homie",
|
|
|
|