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 f3b6cec commit e206cf2Copy full SHA for e206cf2
routes/api.php
@@ -6,6 +6,6 @@
6
Route::prefix(config('apiauth.route_prefix'))->group(function () {
7
Route::post('/register', [AuthenticationController::class, 'register']);
8
Route::post('/login', [AuthenticationController::class, 'login']);
9
- Route::post('/logout', [AuthenticationController::class, 'logout']);
+ Route::post('/logout', [AuthenticationController::class, 'logout'])->middleware('auth:sanctum');
10
Route::get('/user', [AuthenticationController::class, 'currentUser'])->middleware('auth:sanctum');
11
});
0 commit comments