forked from projects/fipamo
ro
0951005341
it's time to get the setting api running so site options can be editied so the first step is to get the settings page up and running. the sorting class is getting a bit heavy, but it will hold the method for gathering settings page info for now.
42 lines
1.4 KiB
PHP
42 lines
1.4 KiB
PHP
<?php
|
|
|
|
use Illuminate\Support\Facades\Route;
|
|
use App\Http\Controllers\Dash\IndexController;
|
|
use App\Http\Controllers\Dash\AuthController;
|
|
use App\Http\Controllers\Front\StartController;
|
|
use App\Http\Controllers\Theming\ThemeController;
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| 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!
|
|
|
|
|
*/
|
|
|
|
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("/logout", [AuthController::class, 'exit']);
|
|
});
|
|
|
|
//theming
|
|
|
|
Route::group(['prefix' => 'theme', 'middleware' => 'member.check'], function () {
|
|
Route::get("/view/{view?}", [ThemeController::class, 'getView']);
|
|
});
|