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
+23 -3
View File
@@ -1,7 +1,27 @@
<?php
use App\Http\Controllers\EndpointController;
use App\Http\Controllers\InspectorController;
use Illuminate\Support\Facades\Route;
Route::get('/', function () {
return view('welcome');
});
Route::view('/', 'welcome')->name('home');
Route::post('/inspectors', [EndpointController::class, 'storeAnonymous'])
->name('inspectors.store');
Route::any('/hook/{token}', [EndpointController::class, 'receive'])
->middleware('throttle:webhooks')
->where('token', '[A-Za-z0-9]+')
->name('webhooks.receive');
Route::get('/inspect/{token}', [InspectorController::class, 'show'])
->where('token', '[A-Za-z0-9]+')
->name('inspect.show');
Route::delete('/inspect/{token}', [EndpointController::class, 'destroy'])
->where('token', '[A-Za-z0-9]+')
->name('inspect.destroy');
Route::view('/dashboard', 'dashboard-page')
->middleware(['auth', 'verified'])
->name('dashboard');