group(function () { Route::post('/login', [ApiAuthController::class, 'login'])->name('api.auth.login'); Route::post('/logout', [ApiAuthController::class, 'logout'])->middleware('api_auth')->name('api.auth.logout'); });