Skip to content

Commit e4460a7

Browse files
committed
Remove /csrf-cookie endpoint #49
1 parent bb8e245 commit e4460a7

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

routes.php

+1-6
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,6 @@
33
$api = app('api.router');
44

55
$api->version('v1', function ($api) {
6-
// Define the routes to issue tokens & initialize CSRF protection.
6+
// Define the routes to issue tokens.
77
$api->post('/token', [\Igniter\Api\Controllers\Tokens::class, 'create']);
8-
9-
$api->get(
10-
'/csrf-cookie',
11-
\Laravel\Sanctum\Http\Controllers\CsrfCookieController::class.'@show'
12-
)->middleware('web');
138
});

0 commit comments

Comments
 (0)