2023-08-14 21:07:53 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
use Illuminate\Support\Facades\Route;
|
2023-08-14 22:33:53 +02:00
|
|
|
use App\Http\Controllers\FrontIndexController;
|
2023-08-15 23:05:51 +02:00
|
|
|
use App\Http\Controllers\AuthController;
|
|
|
|
use App\Http\Controllers\DenController;
|
2023-08-17 02:52:02 +02:00
|
|
|
use App\Http\Controllers\LocationController;
|
2023-08-14 21:07:53 +02: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!
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
2023-08-16 22:03:06 +02:00
|
|
|
//front
|
2023-08-14 22:33:53 +02:00
|
|
|
Route::get("/", [FrontIndexController::class, 'start']);
|
2023-08-15 23:05:51 +02:00
|
|
|
|
|
|
|
//auth
|
|
|
|
Route::get("/login", [AuthController::class, 'showLogin']);
|
|
|
|
Route::post("/login", [AuthController::class, 'memberAuth']);
|
|
|
|
Route::get("/logout", [AuthController::class, 'leave']);
|
2023-08-16 22:03:06 +02:00
|
|
|
|
|
|
|
//back
|
|
|
|
Route::group(['prefix' => 'den', 'middleware' => 'member.check'], function () {
|
|
|
|
Route::get("/", [DenController::class, 'start']);
|
|
|
|
Route::get("/member", [DenController::class, 'member']);
|
2023-08-17 02:52:02 +02:00
|
|
|
Route::get("/locations/{action?}", [DenController::class, 'location']);
|
|
|
|
Route::post("/locations/add", [LocationController::class, 'addLocation']);
|
2023-08-16 22:03:06 +02:00
|
|
|
});
|