added api functions

This commit is contained in:
Dennis Eichhorn 2023-07-24 06:01:32 +00:00
parent 513df8987b
commit 83a36c1c66

View File

@ -453,6 +453,7 @@ abstract class ModuleAbstract
mixed $obj
) : void
{
// @todo: consider to set different status code? (also for other createInvalid() functions)
$response->header->set('Content-Type', MimeType::M_JSON . '; charset=utf-8', true);
$response->data[$request->uri->__toString()] = [
'status' => NotificationLevel::WARNING,