feat(canvas): add interactive resource views and team avatars (#12160)

This commit is contained in:
Andras Bacsai
2026-10-14 09:28:10 +02:00
committed by GitHub
parent 448dc8ea0a
commit 33ee09fa87
146 changed files with 12076 additions and 367 deletions
@@ -0,0 +1,22 @@
<?php
namespace App\Http\Controllers;
use App\Services\TeamAvatarStorageService;
use Illuminate\Http\Response;
class TeamAvatarController extends Controller
{
public function __invoke(int $team_id, TeamAvatarStorageService $avatarStorage): Response
{
$team = auth()->user()->teams()->whereKey($team_id)->firstOrFail();
$contents = $avatarStorage->teamContents($team);
abort_if($contents === null, 404);
return response($contents, 200, [
'Content-Type' => 'image/jpeg',
'Cache-Control' => 'private, max-age=31536000, immutable',
]);
}
}