Skip to content

Commit

Permalink
fix: secure api routes
Browse files Browse the repository at this point in the history
  • Loading branch information
HDVinnie committed Dec 13, 2021
1 parent fa745a3 commit 73eda44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion routes/api.php
Expand Up @@ -31,7 +31,7 @@
URL::forceRootUrl(config('unit3d.root_url_override'));
}
// Torrents System
Route::group(['middleware' => 'auth:api', 'prefix' => 'torrents'], function () {
Route::group(['middleware' => ['auth:api', 'banned'], 'prefix' => 'torrents'], function () {
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]+');
Expand Down

0 comments on commit 73eda44

Please sign in to comment.