+3
-3
@@ -145,7 +145,7 @@ class Router
|
||||
return ['status' => 'logged_out'];
|
||||
}
|
||||
|
||||
private function createSource(): array
|
||||
private function createSource(): mixed
|
||||
{
|
||||
$body = json_decode(file_get_contents('php://input'), true);
|
||||
$type = LogSourceType::from($body['type'] ?? '');
|
||||
@@ -157,7 +157,7 @@ class Router
|
||||
);
|
||||
}
|
||||
|
||||
private function createRule(): array
|
||||
private function createRule(): mixed
|
||||
{
|
||||
$body = json_decode(file_get_contents('php://input'), true);
|
||||
return $this->repo->createRule(
|
||||
@@ -178,7 +178,7 @@ class Router
|
||||
return ['status' => 'deleted', 'id' => $id];
|
||||
}
|
||||
|
||||
private function getAlerts(): array
|
||||
private function getAlerts(): mixed
|
||||
{
|
||||
$limit = (int) ($_GET['limit'] ?? 100);
|
||||
$offset = (int) ($_GET['offset'] ?? 0);
|
||||
|
||||
Reference in New Issue
Block a user