megahunt.test/routes/web.php

19 lines
427 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');
});
});
Route::get('/session', function() {
exit(print_r(session()->all(), true));
});