Fixed rhpz.org

This commit is contained in:
2026-07-02 10:41:31 +02:00
parent 04b9db3359
commit 96d2623b67
13 changed files with 47 additions and 7 deletions

View File

@@ -137,6 +137,7 @@ Route::name('redirect.')->controller(\App\Http\Controllers\RedirectController::c
// ShortLinkController
Route::domain('rhpz.org')->name('shorturl.')->controller(\App\Http\Controllers\ShortLinkController::class)->group(function () {
Route::get('/', 'index' )->name('index');
Route::get('/{id}', 'legacy' )->where('id', '[0-9]+')->name('legacy');
Route::get('/{letter}/{id}', 'redirect' )->where(['letter' => '[a-z]', 'id' => '[0-9]+'])->name('redirect');
});