Implement webhook inspector

This commit is contained in:
2026-08-04 17:09:39 +02:00
parent b021836c14
commit 75d8b25b64
57 changed files with 5110 additions and 230 deletions
@@ -0,0 +1,20 @@
<?php
namespace App\Http\Controllers;
use App\Models\WebhookEndpoint;
use Illuminate\Support\Facades\Gate;
use Illuminate\View\View;
class InspectorController extends Controller
{
public function show(string $token): View
{
$endpoint = WebhookEndpoint::findByToken($token);
abort_unless($endpoint instanceof WebhookEndpoint && $endpoint->acceptsRequests(), 404);
Gate::authorize('view', $endpoint);
return view('inspector-page', ['endpoint' => $endpoint]);
}
}