mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-02-11 14:38:39 +00:00
added api functions
This commit is contained in:
parent
513df8987b
commit
83a36c1c66
|
|
@ -453,6 +453,7 @@ abstract class ModuleAbstract
|
||||||
mixed $obj
|
mixed $obj
|
||||||
) : void
|
) : 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->header->set('Content-Type', MimeType::M_JSON . '; charset=utf-8', true);
|
||||||
$response->data[$request->uri->__toString()] = [
|
$response->data[$request->uri->__toString()] = [
|
||||||
'status' => NotificationLevel::WARNING,
|
'status' => NotificationLevel::WARNING,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user