Skip to content

Commit 7007dcc

Browse files
committed
fix(laravel): duplicate middleware in routes
1 parent 155c01f commit 7007dcc

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/Laravel/routes/api.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,20 +52,16 @@
5252
Route::group(['prefix' => $prefix], function (): void {
5353
Route::group(['middleware' => ApiPlatformMiddleware::class], function (): void {
5454
Route::get('/contexts/{shortName?}{_format?}', ContextAction::class)
55-
->middleware(ApiPlatformMiddleware::class)
5655
->name('api_jsonld_context');
5756

5857
Route::get('/docs{_format?}', DocumentationController::class)
59-
->middleware(ApiPlatformMiddleware::class)
6058
->name('api_doc');
6159

6260
Route::get('/.well-known/genid/{id}', fn () => throw new NotExposedHttpException('This route is not exposed on purpose. It generates an IRI for a collection resource without identifier nor item operation.'))
63-
->middleware(ApiPlatformMiddleware::class)
6461
->name('api_genid');
6562

6663
Route::get('/{index?}{_format?}', EntrypointController::class)
6764
->where('index', 'index')
68-
->middleware(ApiPlatformMiddleware::class)
6965
->name('api_entrypoint');
7066
});
7167

0 commit comments

Comments
 (0)