Skip to content

Commit e206cf2

Browse files
authored
Update api.php
1 parent f3b6cec commit e206cf2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

routes/api.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@
66
Route::prefix(config('apiauth.route_prefix'))->group(function () {
77
Route::post('/register', [AuthenticationController::class, 'register']);
88
Route::post('/login', [AuthenticationController::class, 'login']);
9-
Route::post('/logout', [AuthenticationController::class, 'logout']);
9+
Route::post('/logout', [AuthenticationController::class, 'logout'])->middleware('auth:sanctum');
1010
Route::get('/user', [AuthenticationController::class, 'currentUser'])->middleware('auth:sanctum');
1111
});

0 commit comments

Comments
 (0)