Skip to content

Commit 0f26d6f

Browse files
committed
feat: add global CORS handling and configuration for API routes
1 parent b14ddb4 commit 0f26d6f

File tree

2 files changed

+1
-40
lines changed

2 files changed

+1
-40
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.")->middleware(\CSlant\Blog\Api\Http\Middlewares\SimpleCorsMiddleware::class)->group(function () {
28+
Route::prefix($routePrefix)->name("$routePrefix.")->group(function () {
2929
Route::get('/', fn () => response()->json(['message' => 'Welcome to CSlant Blog API']));
3030

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

src/Http/Middlewares/SimpleCorsMiddleware.php

Lines changed: 0 additions & 39 deletions
This file was deleted.

0 commit comments

Comments
 (0)