<?php

use Illuminate\Support\Facades\Route;

// Dusk testing routes
Route::get('/_dusk/login/{userId}', function ($userId) {
    auth()->loginUsingId($userId);
    return response()->json(['status' => 'logged in']);
})->name('dusk.login');

Route::get('/_dusk/logout', function () {
    auth()->logout();
    return response()->json(['status' => 'logged out']);
})->name('dusk.logout');
