ro
d8ee4926b1
had some comments referencng a the idea for a refactor of routing, but decided to stick with RouteController for now becuase of the flexibility. if improvements are to be made, they will be made in that class.
20 lines
724 B
PHP
20 lines
724 B
PHP
<?php
|
|
|
|
use Illuminate\Support\Facades\Route;
|
|
use App\Http\Controllers\RouteController;
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Web Routes
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| Here is where you can register web routes for your application. These
|
|
| routes are loaded by the RouteServiceProvider and all of them will
|
|
| be assigned to the "web" middleware group. Make something great!
|
|
|
|
|
*/
|
|
|
|
//routing needs a bit more nuance, so requests are sent to a controller to sort traffic
|
|
Route::get("/{first?}/{second?}/{third?}/{four?}", [RouteController::class, 'get']);
|
|
Route::post("/{first?}/{second?}/{third?}", [RouteController::class, 'post']);
|