2024-08-29 03:40:17 +02:00
|
|
|
<?php
|
|
|
|
|
2024-08-30 02:17:13 +02:00
|
|
|
use App\Http\Controllers\PrivateUserController;
|
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 13:10:02 +02:00
|
|
|
Route::post('/reset', 'reset');
|
2024-08-29 11:48:29 +02:00
|
|
|
});
|
2024-08-30 02:17:13 +02:00
|
|
|
Route::controller(PrivateUserController::class)->prefix('/users/private')->group(function () {
|
|
|
|
Route::get('/list', 'list');
|
|
|
|
Route::get('/get/{id}', 'get')->whereUuid('id');
|
2024-08-30 03:31:22 +02:00
|
|
|
Route::put('/edit/{id}', 'edit')->whereUuid('id');
|
2024-08-30 02:17:13 +02:00
|
|
|
});
|
2024-08-29 11:48:29 +02:00
|
|
|
});
|
|
|
|
|
|
|
|
Route::get('/session', function() {
|
|
|
|
exit(print_r(session()->all(), true));
|
|
|
|
});
|