2021-11-15 08:25:07 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
use Illuminate\Support\Facades\Route;
|
2021-11-16 08:05:39 +02:00
|
|
|
use App\Http\Controllers\UserController;
|
2021-11-16 09:49:29 +02:00
|
|
|
use App\Http\Controllers\ProjectController;
|
2021-11-15 08:25:07 +02:00
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| Web Routes
|
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
|
| Here is where you can register web routes for your application. These
|
|
|
|
|
| routes are loaded by the RouteServiceProvider within a group which
|
|
|
|
|
| contains the "web" middleware group. Now create something great!
|
|
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
Route::get('/', function () {
|
|
|
|
|
return view('welcome');
|
|
|
|
|
});
|
2021-11-16 07:57:23 +02:00
|
|
|
|
2021-11-16 09:58:36 +02:00
|
|
|
// NOTICE: Not all the routes are logical and would exist in a real Laravel project
|
|
|
|
|
// Some routes are just for the purpose of replicating some testing scenario
|
|
|
|
|
|
2021-11-16 08:05:39 +02:00
|
|
|
Route::get('users', [UserController::class, 'index']);
|
|
|
|
|
Route::get('users/{userId}', [UserController::class, 'show']);
|
2021-11-16 08:19:07 +02:00
|
|
|
Route::get('users/check/{name}/{email}', [UserController::class, 'check_create']);
|
2021-11-16 10:25:05 +02:00
|
|
|
Route::get('users/check_update/{name}/{email}', [UserController::class, 'check_update']);
|
|
|
|
|
Route::delete('users', [UserController::class, 'destroy']);
|
2021-11-16 09:49:29 +02:00
|
|
|
|
|
|
|
|
Route::post('projects', [ProjectController::class, 'store']);
|
2021-11-16 09:58:36 +02:00
|
|
|
Route::post('projects/mass_update', [ProjectController::class, 'mass_update']);
|
2021-11-16 10:45:45 +02:00
|
|
|
Route::delete('projects/{projectId}', [ProjectController::class, 'destroy']);
|