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;
|
2024-09-20 23:09:45 +02:00
|
|
|
use App\Http\Controllers\MemberController;
|
2023-08-28 23:51:42 +02:00
|
|
|
use App\Http\Controllers\ExportController;
|
2024-02-08 21:37:34 +01:00
|
|
|
use App\Http\Controllers\AppealController;
|
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-18 04:50:38 +02:00
|
|
|
Route::get("/listings/{pageNum}", [FrontIndexController::class, 'listings']);
|
2023-08-18 23:34:53 +02:00
|
|
|
Route::get("/about", [FrontIndexController::class, 'about']);
|
|
|
|
Route::get("/location/{uuid}", [FrontIndexController::class, 'location']);
|
2024-02-02 19:16:11 +01:00
|
|
|
Route::get("/appeals", [FrontIndexController::class, 'appeals']);
|
2023-08-21 21:56:26 +02:00
|
|
|
Route::post("/search", [FrontIndexController::class, 'indexSearch']);
|
2024-02-08 21:37:34 +01:00
|
|
|
Route::post("/appeal", [AppealController::class, 'sendAppeal']);
|
2023-08-15 23:05:51 +02:00
|
|
|
|
2023-08-28 23:51:42 +02:00
|
|
|
//exports
|
2023-09-28 23:02:35 +02:00
|
|
|
Route::get("/exports", [ExportController::class, 'exportIndex']);
|
|
|
|
Route::get("/exports/{type}/{rate}", [ExportController::class, 'exportCSV']);
|
2023-08-28 23:51:42 +02:00
|
|
|
|
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']);
|
2024-02-21 23:47:05 +01:00
|
|
|
Route::get("/listings/{pageNum}", [DenController::class, 'location']);
|
2024-02-20 23:33:49 +01:00
|
|
|
Route::get("/location/edit/{uuid}", [DenController::class, 'locationEdit']);
|
2024-02-21 23:47:05 +01:00
|
|
|
Route::get("/locations", [DenController::class, 'locations']);
|
2023-08-25 00:27:14 +02:00
|
|
|
//admin actions
|
2024-02-21 23:47:05 +01:00
|
|
|
Route::post("/locations/edit", [LocationController::class, 'editLocation']);
|
2023-08-25 00:27:14 +02:00
|
|
|
Route::get("/admin/update", [LocationController::class, 'updateLocations']);
|
2024-02-18 02:33:35 +01:00
|
|
|
Route::get("/admin/compile", [LocationController::class, 'compileLocations']);
|
2024-09-25 00:21:59 +02:00
|
|
|
//member stuff
|
|
|
|
Route::get("/you", [MemberController::class, 'profile']);
|
|
|
|
Route::get("/member", [MemberController::class, 'index']);
|
|
|
|
Route::get("/member/{uuid}", [MemberController::class, 'editMember']);
|
|
|
|
Route::post("/profile/edit", [MemberController::class, 'profileEdit']);
|
|
|
|
Route::post("/member/edit", [MemberController::class, 'memberEdit']);
|
2023-08-16 22:03:06 +02:00
|
|
|
});
|