mirror of https://github.com/Icinga/icinga2.git
parent
20b4545da4
commit
76baeadb5b
|
@ -38,7 +38,7 @@ bool ModifyObjectHandler::HandleRequest(const ApiUser::Ptr& user, HttpRequest& r
|
|||
if (request.RequestMethod != "POST")
|
||||
return false;
|
||||
|
||||
Type::Ptr type = FilterUtility::TypeFromPluralName(request.RequestUrl->GetPath()[1]);
|
||||
Type::Ptr type = FilterUtility::TypeFromPluralName(request.RequestUrl->GetPath()[2]);
|
||||
|
||||
if (!type) {
|
||||
HttpUtility::SendJsonError(response, 400, "Invalid type specified.");
|
||||
|
|
Loading…
Reference in New Issue