wire auth api

This commit is contained in:
Yisroel Baum 2026-05-23 23:21:07 +03:00
parent 9e70fae38d
commit eff7c5c281
Signed by: yisroelbaum
GPG key ID: 0FA60884F75520A9
12 changed files with 137 additions and 19 deletions

10
backend/routes/api.php Normal file
View file

@ -0,0 +1,10 @@
<?php
use App\Controllers\AuthController;
use App\Http\Middleware\AuthMiddleware;
use Illuminate\Support\Facades\Route;
Route::post('/login', [AuthController::class, 'login']);
Route::post('/logout', [AuthController::class, 'logout']);
Route::get('/me', [AuthController::class, 'me'])
->middleware(AuthMiddleware::class);