ro
3c6322ec12
the last ui page that needed to be added was managing the main navigation menu for rendered pages, so that's been turned on. menu items can be added by pinning pages to the menu when editing them and can be removed by unpinning them or deleting them from the navigation edit ui it touched quite a few systems so all of those classes needed to be edited as well tweaking the front end script to work with the new modular script format
43 lines
1.5 KiB
PHP
43 lines
1.5 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("/navigation", [IndexController::class, 'navigation']);
|
|
Route::get("/logout", [AuthController::class, 'exit']);
|
|
});
|
|
|
|
//theming
|
|
|
|
Route::group(['prefix' => 'theme', 'middleware' => 'member.check'], function () {
|
|
Route::get("/view/{view?}", [ThemeController::class, 'getView']);
|
|
});
|