forked from projects/fipamo
ro
f7c9558da2
seperated dash controllers for api controllers in the controller directory to make them easier to manage also added middleware to check authorization when accessing dash pages
35 lines
1.1 KiB
PHP
35 lines
1.1 KiB
PHP
<?php
|
|
|
|
use Illuminate\Support\Facades\Route;
|
|
use App\Http\Controllers\Dash\IndexController;
|
|
use App\Http\Controllers\Dash\AuthController;
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| 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']);
|
|
});
|