2024-02-29 18:09:17 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
use Illuminate\Support\Facades\Route;
|
2024-03-07 18:36:31 +01:00
|
|
|
use App\Http\Controllers\Dash\IndexController;
|
|
|
|
use App\Http\Controllers\Dash\AuthController;
|
2024-03-19 02:48:59 +01:00
|
|
|
use App\Http\Controllers\Front\StartController;
|
2024-03-14 23:58:11 +01:00
|
|
|
use App\Http\Controllers\Theming\ThemeController;
|
2024-02-29 18:09:17 +01:00
|
|
|
|
|
|
|
/*
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| 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!
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
2024-03-19 02:48:59 +01:00
|
|
|
Route::get("/", [StartController::class, 'index']);
|
2024-02-29 20:00:59 +01:00
|
|
|
|
|
|
|
//DASHBOARD
|
|
|
|
|
2024-03-03 20:48:22 +01:00
|
|
|
//login stuff
|
2024-03-07 18:36:31 +01:00
|
|
|
Route::get("/dashboard", [IndexController::class, 'login']);
|
2024-03-03 20:48:22 +01:00
|
|
|
Route::post("/login", [AuthController::class, 'enter']);
|
|
|
|
|
2024-02-29 20:00:59 +01:00
|
|
|
//back
|
2024-03-07 18:36:31 +01:00
|
|
|
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']);
|
2024-03-19 20:19:27 +01:00
|
|
|
Route::get("/settings", [IndexController::class, 'settings']);
|
2024-03-22 21:35:44 +01:00
|
|
|
Route::get("/navigation", [IndexController::class, 'navigation']);
|
2024-03-03 20:48:22 +01:00
|
|
|
Route::get("/logout", [AuthController::class, 'exit']);
|
2024-02-29 20:00:59 +01:00
|
|
|
});
|
2024-03-14 23:58:11 +01:00
|
|
|
|
2024-04-25 23:03:06 +02:00
|
|
|
//theme kit
|
2024-03-14 23:58:11 +01:00
|
|
|
Route::group(['prefix' => 'theme', 'middleware' => 'member.check'], function () {
|
2024-04-25 23:03:06 +02:00
|
|
|
Route::get("/", [ThemeController::class, 'start']);
|
2024-03-14 23:58:11 +01:00
|
|
|
Route::get("/view/{view?}", [ThemeController::class, 'getView']);
|
|
|
|
});
|