Skip to content

Commit 60fa42d

Browse files
committed
feat: add 'api' middleware to route groups in blog and member APIs
1 parent 61cfb96 commit 60fa42d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

routes/blog-api.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
$routePrefix = config('blog-api.defaults.route_prefix');
2727

28-
Route::prefix($routePrefix)->name("$routePrefix.")->group(function () {
28+
Route::prefix($routePrefix)->name("$routePrefix.")->middleware('api')->group(function () {
2929
Route::get('/', fn () => response()->json(['message' => 'Welcome to CSlant Blog API']));
3030

3131
Route::get('search', [PostController::class, 'getSearch']);

0 commit comments

Comments
 (0)