@ -123,7 +123,13 @@ class APIControl
case "settings":
$token = $request->getHeader("fipamo-access-token");
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);
$result = [
"message" => "API access denied, homie",