2026-01-26 23:25:24 +00:00
|
|
|
<?php
|
|
|
|
|
|
2026-01-26 23:56:46 +00:00
|
|
|
declare(strict_types=1);
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Uptelligence Module API Routes
|
|
|
|
|
*
|
|
|
|
|
* Webhook endpoints for receiving vendor release notifications.
|
|
|
|
|
*/
|
|
|
|
|
|
2026-01-26 23:25:24 +00:00
|
|
|
use Illuminate\Support\Facades\Route;
|
2026-01-27 16:32:55 +00:00
|
|
|
use Core\Mod\Uptelligence\Controllers\Api\WebhookController;
|
2026-01-26 23:56:46 +00:00
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| Uptelligence Webhooks (Public - No Auth Required)
|
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
|
| External webhook endpoints for receiving release notifications from
|
|
|
|
|
| GitHub, GitLab, npm, Packagist, and other vendor systems.
|
|
|
|
|
| Authentication is handled via signature verification using the
|
|
|
|
|
| webhook's secret key.
|
|
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
Route::prefix('uptelligence/webhook')->name('api.uptelligence.webhooks.')->group(function () {
|
|
|
|
|
Route::post('/{webhook}', [WebhookController::class, 'receive'])
|
|
|
|
|
->name('receive')
|
|
|
|
|
->middleware('throttle:uptelligence-webhooks');
|
2026-01-26 23:25:24 +00:00
|
|
|
|
2026-01-26 23:56:46 +00:00
|
|
|
Route::post('/{webhook}/test', [WebhookController::class, 'test'])
|
|
|
|
|
->name('test')
|
|
|
|
|
->middleware('throttle:uptelligence-webhooks');
|
|
|
|
|
});
|