forked from are0h/TheBadSpace
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
1017 B
PHP
32 lines
1017 B
PHP
<?php
|
|
|
|
use Illuminate\Support\Facades\Route;
|
|
use App\Http\Controllers\FrontIndexController;
|
|
use App\Http\Controllers\AuthController;
|
|
use App\Http\Controllers\DenController;
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| 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!
|
|
|
|
|
*/
|
|
|
|
//front
|
|
Route::get("/", [FrontIndexController::class, 'start']);
|
|
|
|
//auth
|
|
Route::get("/login", [AuthController::class, 'showLogin']);
|
|
Route::post("/login", [AuthController::class, 'memberAuth']);
|
|
Route::get("/logout", [AuthController::class, 'leave']);
|
|
|
|
//back
|
|
Route::group(['prefix' => 'den', 'middleware' => 'member.check'], function () {
|
|
Route::get("/", [DenController::class, 'start']);
|
|
Route::get("/member", [DenController::class, 'member']);
|
|
});
|