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-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!
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
Route::get('/', function () {
|
|
|
|
return view('welcome');
|
|
|
|
});
|
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-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
|
|
|
|
|
|
|
//theming
|
|
|
|
|
|
|
|
Route::group(['prefix' => 'theme', 'middleware' => 'member.check'], function () {
|
|
|
|
Route::get("/view/{view?}", [ThemeController::class, 'getView']);
|
|
|
|
});
|