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>
34 lines
1.1 KiB
PHP
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');
|
|
});
|