Swagger update + moved API user/gpg -> gpgkey/

This commit is contained in:
2024-04-22 19:01:04 +02:00
parent 8036edec5a
commit d6c6572989
13 changed files with 336 additions and 286 deletions

View File

@@ -83,6 +83,7 @@ class DocumentRoute extends Route {
try {
if (!$this->loadClass()) {
$router->getLogger()->warning("Error loading class: $className");
return $router->returnStatusCode(500, [ "message" => "Error loading class: $className"]);
}
@@ -90,6 +91,7 @@ class DocumentRoute extends Route {
$document = $this->reflectionClass->newInstanceArgs($args);
return $document->load($params);
} catch (\ReflectionException $e) {
$router->getLogger()->error("Error loading class: $className: " . $e->getMessage());
return $router->returnStatusCode(500, [ "message" => "Error loading class $className: " . $e->getMessage()]);
}
}