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