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.
18 lines
521 B
PHTML
18 lines
521 B
PHTML
|
2 months ago
|
<?php
|
||
|
|
|
||
|
|
namespace App\Controllers;
|
||
|
|
|
||
|
|
use App\Services\AnnouncementService;
|
||
|
|
use App\Services\Cloud\CloudAccess;
|
||
|
|
|
||
|
|
/** Authenticated database-only notice feed; no engine session is needed. */
|
||
|
|
final class AnnouncementController
|
||
|
|
{
|
||
|
|
public function index($request, $response)
|
||
|
|
{
|
||
|
|
return $response->withJson(AnnouncementService::published(
|
||
|
|
$request->getAttribute('cloud_actor') ?? CloudAccess::actor(false), $request->getQueryParams()
|
||
|
|
))->withHeader('Cache-Control', 'private, no-store');
|
||
|
|
}
|
||
|
|
}
|