2024-02-29 18:09:17 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
use Illuminate\Support\Facades\Route;
|
2024-02-29 20:00:59 +01:00
|
|
|
use App\Http\Controllers\DashController;
|
2024-03-03 20:48:22 +01:00
|
|
|
use App\Http\Controllers\AuthController;
|
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
|
|
|
|
Route::post("/login", [AuthController::class, 'enter']);
|
|
|
|
|
2024-02-29 20:00:59 +01:00
|
|
|
//back
|
|
|
|
Route::group(['prefix' => 'dashboard'], function () {
|
|
|
|
Route::get("/", [DashController::class, 'start']);
|
2024-03-05 03:06:36 +01:00
|
|
|
Route::get("/pages/{pageFilter?}/{pageNum?}", [DashController::class, 'book']);
|
2024-03-05 22:49:30 +01:00
|
|
|
Route::get("/page/{mode}/{uuid}", [DashController::class, 'page']);
|
2024-03-03 20:48:22 +01:00
|
|
|
Route::get("/logout", [AuthController::class, 'exit']);
|
2024-02-29 20:00:59 +01:00
|
|
|
});
|