megahunt.test/routes/web.php

20 lines
467 B
PHP
Raw Normal View History

2024-08-29 03:40:17 +02:00
<?php
2024-08-29 11:48:29 +02:00
use App\Http\Controllers\PublicUserController;
2024-08-29 03:40:17 +02:00
use Illuminate\Support\Facades\Route;
2024-08-29 11:48:29 +02:00
Route::get('/', function() {
2024-08-29 03:40:17 +02:00
return view('welcome');
});
2024-08-29 11:48:29 +02:00
Route::prefix('/api')->group(function() {
Route::controller(PublicUserController::class)->prefix('/users')->group(function() {
Route::put('/register', 'register');
2024-08-29 12:34:01 +02:00
Route::post('/login', 'login');
2024-08-29 11:48:29 +02:00
});
});
Route::get('/session', function() {
exit(print_r(session()->all(), true));
});