Add private encrypted Gitea aggregate activity service
Deploy Backend / deploy (push) Failing after 14s
Deploy Backend / deploy (push) Failing after 14s
This commit is contained in:
1 parent
fa32df60a9
commit
7249f001b1
9 files changed
+147
-2
No files matched your search
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
namespace App\Http\Controllers;
|
||||
use App\Services\ActivityHeatmap;
|
||||
class ActivityController extends Controller
|
||||
{
|
||||
public function __invoke(ActivityHeatmap $service)
|
||||
{
|
||||
try { return response()->json($service->snapshot())->header('Cache-Control', 'public, max-age=60'); }
|
||||
catch (\Throwable $e) { return response()->json(['error' => 'activity_unavailable'], 503)->header('Cache-Control', 'no-store'); }
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user