You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
namespace App\Controllers;
|
|
|
|
|
|
|
|
|
|
use App\Services\Cloud\CloudAccess;
|
|
|
|
|
use App\Services\Cloud\CloudSystemJournalService;
|
|
|
|
|
|
|
|
|
|
/** Read-only administrator endpoint for the managed system journal. */
|
|
|
|
|
final class CloudAdminSystemLogsController
|
|
|
|
|
{
|
|
|
|
|
public function index($request, $response)
|
|
|
|
|
{
|
|
|
|
|
$payload = CloudSystemJournalService::page(
|
|
|
|
|
$request->getAttribute('cloud_actor') ?? CloudAccess::actor(false),
|
|
|
|
|
$request->getQueryParams()
|
|
|
|
|
);
|
|
|
|
|
return $response->withJson($payload)->withHeader('Cache-Control', 'private, no-store');
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function detail($request, $response)
|
|
|
|
|
{
|
|
|
|
|
$payload = CloudSystemJournalService::detail(
|
|
|
|
|
$request->getAttribute('cloud_actor') ?? CloudAccess::actor(false),
|
|
|
|
|
$request->getQueryParams()
|
|
|
|
|
);
|
|
|
|
|
return $response->withJson($payload)->withHeader('Cache-Control', 'private, no-store');
|
|
|
|
|
}
|
|
|
|
|
}
|