forked from projects/fipamo
ro
a5583debbd
to complete page rendering, the default theme needed to be converted to use blade templating. rather than update the theme kit as a seperate progress, it will be integrated into this codebase so themes can be developed and tested in app. the basics for the theme kit are in place, so now conversion of the defualt theme can be completed. once the that is done, it can then be used to complete the rendering engine to export HTML files
42 lines
1.3 KiB
PHP
42 lines
1.3 KiB
PHP
<?php
|
|
|
|
use Illuminate\Support\Facades\Route;
|
|
use App\Http\Controllers\Dash\IndexController;
|
|
use App\Http\Controllers\Dash\AuthController;
|
|
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('/', function () {
|
|
return view('welcome');
|
|
});
|
|
|
|
//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("/logout", [AuthController::class, 'exit']);
|
|
});
|
|
|
|
//theming
|
|
|
|
Route::group(['prefix' => 'theme', 'middleware' => 'member.check'], function () {
|
|
Route::get("/view/{view?}", [ThemeController::class, 'getView']);
|
|
});
|