mirror of https://github.com/Icinga/icinga2.git
Update doc URL for the API info handler at /v1
This commit is contained in:
parent
9932f04751
commit
0915c84530
|
@ -65,7 +65,7 @@ bool InfoHandler::HandleRequest(
|
||||||
{ "user", user->GetName() },
|
{ "user", user->GetName() },
|
||||||
{ "permissions", Array::FromVector(permInfo) },
|
{ "permissions", Array::FromVector(permInfo) },
|
||||||
{ "version", Application::GetAppVersion() },
|
{ "version", Application::GetAppVersion() },
|
||||||
{ "info", "More information about API requests is available in the documentation at https://docs.icinga.com/icinga2/latest." }
|
{ "info", "More information about API requests is available in the documentation at https://icinga.com/docs/icinga2/latest/" }
|
||||||
});
|
});
|
||||||
|
|
||||||
Dictionary::Ptr result = new Dictionary({
|
Dictionary::Ptr result = new Dictionary({
|
||||||
|
@ -90,7 +90,7 @@ bool InfoHandler::HandleRequest(
|
||||||
} else
|
} else
|
||||||
body += "Your user does not have any permissions.</p>";
|
body += "Your user does not have any permissions.</p>";
|
||||||
|
|
||||||
body += R"(<p>More information about API requests is available in the <a href="https://docs.icinga.com/icinga2/latest" target="_blank">documentation</a>.</p></html>)";
|
body += R"(<p>More information about API requests is available in the <a href="https://icinga.com/docs/icinga2/latest/" target="_blank">documentation</a>.</p></html>)";
|
||||||
response.body() = body;
|
response.body() = body;
|
||||||
response.set(http::field::content_length, response.body().size());
|
response.set(http::field::content_length, response.body().size());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue