forked from projects/fipamo
keep RouteController
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.
This commit is contained in:
parent
e09d85292a
commit
d8ee4926b1
1 changed files with 0 additions and 31 deletions
|
@ -17,34 +17,3 @@ use App\Http\Controllers\RouteController;
|
||||||
//routing needs a bit more nuance, so requests are sent to a controller to sort traffic
|
//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::get("/{first?}/{second?}/{third?}/{four?}", [RouteController::class, 'get']);
|
||||||
Route::post("/{first?}/{second?}/{third?}", [RouteController::class, 'post']);
|
Route::post("/{first?}/{second?}/{third?}", [RouteController::class, 'post']);
|
||||||
|
|
||||||
/*
|
|
||||||
|
|
||||||
REFACTOR: Routing should be handled here instead of a seperate controller, so this needs to be reworked
|
|
||||||
KEEP FOR REFERENCE FOR REBUILD
|
|
||||||
|
|
||||||
Route::get("/", [StartController::class, 'index']);
|
|
||||||
|
|
||||||
//DASHBOARD
|
|
||||||
|
|
||||||
//login stuff
|
|
||||||
Route::get("/dashboard", [IndexController::class, 'login']);
|
|
||||||
Route::post("/login", [AuthController::class, 'enter']);
|
|
||||||
|
|
||||||
//back
|
|
||||||
Route::group(['prefix' => 'dashboard', 'middleware' => 'member.check'], function () {
|
|
||||||
Route::get("/start", [IndexController::class, 'start'])->name('start');
|
|
||||||
Route::get("/pages/{pageFilter?}/{pageNum?}", [IndexController::class, 'book']);
|
|
||||||
Route::get("/page/{mode}/{uuid}", [IndexController::class, 'page']);
|
|
||||||
Route::get("/settings", [IndexController::class, 'settings']);
|
|
||||||
Route::get("/navigation", [IndexController::class, 'navigation']);
|
|
||||||
Route::get("/logout", [AuthController::class, 'exit']);
|
|
||||||
});
|
|
||||||
|
|
||||||
//theme kit
|
|
||||||
Route::group(['prefix' => 'theme', 'middleware' => 'member.check'], function () {
|
|
||||||
Route::get("/", [ThemeController::class, 'start']);
|
|
||||||
Route::get("/view/{view?}", [ThemeController::class, 'getView']);
|
|
||||||
});
|
|
||||||
|
|
||||||
*/
|
|
||||||
|
|
Loading…
Reference in a new issue