mirror of
https://github.com/coollabsio/coolify.git
synced 2026-06-14 03:19:51 +00:00
5a7408a919
- resolve the GitHub App by a stable identifier during installation callbacks so installing and re-installing keeps working over the full lifetime of the App - verify the installation id received from the callback against the GitHub API before persisting it - support re-installing an already configured GitHub App instead of blocking it - require an authenticated session and rate limit the setup callback routes - extend manifest setup state validity to match GitHub's manifest code lifetime Adds feature coverage for the GitHub App setup and installation callbacks. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
25 lines
901 B
PHP
25 lines
901 B
PHP
<?php
|
|
|
|
use App\Http\Controllers\Webhook\Bitbucket;
|
|
use App\Http\Controllers\Webhook\Gitea;
|
|
use App\Http\Controllers\Webhook\Github;
|
|
use App\Http\Controllers\Webhook\Gitlab;
|
|
use App\Http\Controllers\Webhook\Stripe;
|
|
use Illuminate\Support\Facades\Route;
|
|
|
|
Route::middleware(['web', 'auth', 'throttle:30,1'])->group(function () {
|
|
Route::get('/source/github/redirect', [Github::class, 'redirect']);
|
|
Route::get('/source/github/install', [Github::class, 'install']);
|
|
});
|
|
|
|
Route::post('/source/github/events', [Github::class, 'normal']);
|
|
Route::post('/source/github/events/manual', [Github::class, 'manual']);
|
|
|
|
Route::post('/source/gitlab/events/manual', [Gitlab::class, 'manual']);
|
|
|
|
Route::post('/source/bitbucket/events/manual', [Bitbucket::class, 'manual']);
|
|
|
|
Route::post('/source/gitea/events/manual', [Gitea::class, 'manual']);
|
|
|
|
Route::post('/payments/stripe/events', [Stripe::class, 'events']);
|