Skip to content

Commit

Permalink
remove middleware
Browse files Browse the repository at this point in the history
  • Loading branch information
ildyria committed Apr 12, 2024
1 parent 21f74bc commit 67db064
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 34 deletions.
1 change: 0 additions & 1 deletion app/Http/Kernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@ class Kernel extends HttpKernel
'installation' => \App\Http\Middleware\InstallationStatus::class,
'admin_user' => \App\Http\Middleware\AdminUserStatus::class,
'migration' => \App\Http\Middleware\MigrationStatus::class,
'local_storage' => \App\Http\Middleware\LocalStorageOnly::class,
'content_type' => \App\Http\Middleware\ContentType::class,
'accept_content_type' => \App\Http\Middleware\AcceptContentType::class,
'redirect-legacy-id' => \App\Http\Middleware\RedirectLegacyPhotoID::class,
Expand Down
31 changes: 0 additions & 31 deletions app/Http/Middleware/LocalStorageOnly.php

This file was deleted.

4 changes: 2 additions & 2 deletions routes/api.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
Route::get('/Album::getArchive', [AlbumController::class, 'getArchive'])
->name('download')
->withoutMiddleware(['content_type:json', 'accept_content_type:json'])
->middleware(['local_storage', 'accept_content_type:any']);
->middleware(['accept_content_type:any']);
Route::post('/Album::setTrack', [AlbumController::class, 'setTrack'])
->withoutMiddleware(['content_type:json'])
->middleware(['content_type:multipart']);
Expand Down Expand Up @@ -86,7 +86,7 @@
Route::get('/Photo::getArchive', [PhotoController::class, 'getArchive'])
->name('photo_download')
->withoutMiddleware(['content_type:json', 'accept_content_type:json'])
->middleware(['local_storage', 'accept_content_type:any']);
->middleware(['accept_content_type:any']);

/**
* SEARCH.
Expand Down

0 comments on commit 67db064

Please sign in to comment.