megahunt.test/routes/web.php

20 lines
467 B
PHP

<?php
use App\Http\Controllers\PublicUserController;
use Illuminate\Support\Facades\Route;
Route::get('/', function() {
return view('welcome');
});
Route::prefix('/api')->group(function() {
Route::controller(PublicUserController::class)->prefix('/users')->group(function() {
Route::put('/register', 'register');
Route::post('/login', 'login');
});
});
Route::get('/session', function() {
exit(print_r(session()->all(), true));
});