Skip to content

Commit

Permalink
Remove custom exception handler for API routes
Browse files Browse the repository at this point in the history
  • Loading branch information
duncanmcclean committed Jan 8, 2024
1 parent 77deec3 commit a110035
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 60 deletions.
2 changes: 0 additions & 2 deletions routes/routes.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,11 @@
use Illuminate\Support\Facades\Route;
use Statamic\API\Middleware\Cache;
use Statamic\Facades\Glide;
use Statamic\Http\Middleware\API\SwapExceptionHandler as SwapAPIExceptionHandler;
use Statamic\Http\Middleware\CP\SwapExceptionHandler as SwapCpExceptionHandler;
use Statamic\Http\Middleware\RequireStatamicPro;

if (config('statamic.api.enabled')) {
Route::middleware([
SwapApiExceptionHandler::class,
RequireStatamicPro::class,
Cache::class,
])->group(function () {
Expand Down
16 changes: 0 additions & 16 deletions src/Exceptions/ApiExceptionHandler.php

This file was deleted.

28 changes: 0 additions & 28 deletions src/Exceptions/Concerns/RendersApiExceptions.php

This file was deleted.

14 changes: 0 additions & 14 deletions src/Http/Middleware/API/SwapExceptionHandler.php

This file was deleted.

0 comments on commit a110035

Please sign in to comment.