megahunt.test/routes/web.php

35 lines
1.2 KiB
PHP
Raw Normal View History

2024-08-29 03:40:17 +02:00
<?php
use App\Http\Controllers\PrivateUserController;
2024-08-29 11:48:29 +02:00
use App\Http\Controllers\PublicUserController;
2024-08-30 06:16:16 +02:00
use App\Http\Controllers\TrashUserController;
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
});
Route::controller(PrivateUserController::class)->prefix('/users/private')->group(function () {
Route::get('/list', 'list');
Route::post('/list', 'listFilters');
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 06:16:16 +02:00
Route::controller(TrashUserController::class)->prefix('/users/private/trash')->group(function () {
Route::put('/group', 'addMultiple');
Route::delete('/group', 'deleteMultiple');
Route::delete('/clean', 'cleanMultiple');
Route::get('/list', 'list');
});
2024-08-29 11:48:29 +02:00
});
Route::get('/session', function() {
exit(print_r(session()->all(), true));
});