php-uptelligence/routes/api.php
Snider e0d2325a20 refactor: move namespace from Core\Uptelligence to Core\Mod\Uptelligence
Aligns module namespace with Core PHP Framework conventions where
modules live under the Core\Mod\ namespace hierarchy. This follows
the monorepo separation work started in 40d893a.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-27 16:32:55 +00:00

34 lines
1.1 KiB
PHP

<?php
declare(strict_types=1);
/**
* Uptelligence Module API Routes
*
* Webhook endpoints for receiving vendor release notifications.
*/
use Illuminate\Support\Facades\Route;
use Core\Mod\Uptelligence\Controllers\Api\WebhookController;
/*
|--------------------------------------------------------------------------
| 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');
Route::post('/{webhook}/test', [WebhookController::class, 'test'])
->name('test')
->middleware('throttle:uptelligence-webhooks');
});