Skip to content

Commit

Permalink
refactor(routes): rearrange middleware and methods in api route
Browse files Browse the repository at this point in the history
Rearrange the middleware and only method invocation in the 'tarfin-cards.tarfin-card-transactions' api route for improved readability and consistency with rest of the codebase.
  • Loading branch information
deligoez committed Apr 7, 2024
1 parent 3521ec7 commit 85283bb
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions routes/api.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,10 @@
Route::apiResource(
name: 'tarfin-cards.tarfin-card-transactions',
controller: TarfinCardTransactionController::class
)->only(methods: [
'index',
'show',
'store',
])->shallow()
->middleware(middleware: 'auth:api');
)->shallow()
->middleware(middleware: 'auth:api')
->only(methods: [
'index',
'show',
'store',
]);

0 comments on commit 85283bb

Please sign in to comment.