We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 61cfb96 commit 60fa42dCopy full SHA for 60fa42d
routes/blog-api.php
@@ -25,7 +25,7 @@
25
26
$routePrefix = config('blog-api.defaults.route_prefix');
27
28
-Route::prefix($routePrefix)->name("$routePrefix.")->group(function () {
+Route::prefix($routePrefix)->name("$routePrefix.")->middleware('api')->group(function () {
29
Route::get('/', fn () => response()->json(['message' => 'Welcome to CSlant Blog API']));
30
31
Route::get('search', [PostController::class, 'getSearch']);
0 commit comments