Add private encrypted Gitea aggregate activity service
Deploy Backend / deploy (push) Failing after 14s

This commit is contained in:
Hermes Agent committed 2026-11-18 13:45:16 +00:00
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'); }
}
}