align backend auth patterns
This commit is contained in:
parent
b3266b38c8
commit
299efe0839
23 changed files with 249 additions and 142 deletions
|
|
@ -4,8 +4,7 @@ use App\Http\Controllers\AuthController;
|
|||
use App\Http\Middleware\AuthMiddleware;
|
||||
use Illuminate\Support\Facades\Route;
|
||||
|
||||
Route::post('/login', [AuthController::class, 'login'])
|
||||
->middleware('throttle:5,1');
|
||||
Route::post('/login', [AuthController::class, 'login']);
|
||||
|
||||
Route::middleware(AuthMiddleware::class)->group(function (): void {
|
||||
Route::get('/me', [AuthController::class, 'me']);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue