update: api.php

This commit is contained in:
HDVinnie
2023-06-21 03:10:13 -04:00
committed by GitHub
parent 32dea1adca
commit c2f3291363
+1 -1
View File
@@ -32,7 +32,7 @@ if (config('unit3d.root_url_override')) {
URL::forceRootUrl(config('unit3d.root_url_override'));
}
// Torrents System
Route::middleware('auth:api', 'banned')->prefix('torrents')->group(function (): void {
Route::middleware(['auth:api', 'banned'])->prefix('torrents')->group(function (): void {
Route::get('/', [App\Http\Controllers\API\TorrentController::class, 'index'])->name('torrents.index');
Route::get('/filter', [App\Http\Controllers\API\TorrentController::class, 'filter']);
Route::get('/{id}', [App\Http\Controllers\API\TorrentController::class, 'show'])->where('id', '[0-9]+');