php-uptelligence/routes/api.php
Claude f751905f22
Some checks failed
CI / tests (push) Failing after 1m22s
chore: fix pint code style and add test config
Add phpunit.xml and tests/Pest.php for standalone test execution.
Apply Laravel Pint formatting fixes across all source files.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-23 03:50:07 +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 Core\Mod\Uptelligence\Controllers\Api\WebhookController;
use Illuminate\Support\Facades\Route;
/*
|--------------------------------------------------------------------------
| 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');
});