ro
0eeab6355e
changed the the way files are uploaded to go into their own directory called 'references' organized by location, identified by uuid. the 'references' directory was added to git ignore to those images are not saved in the repo, since every install will have their own set of images also updated reference links to be shown on the front end if they have been added to a location unnecessary links where moved from the admin member template since they have been incorporated into the appropriate area. a template for editing member account information has also been added.
53 lines
2.2 KiB
PHP
53 lines
2.2 KiB
PHP
<?php
|
|
|
|
use Illuminate\Support\Facades\Route;
|
|
use App\Http\Controllers\FrontIndexController;
|
|
use App\Http\Controllers\AuthController;
|
|
use App\Http\Controllers\DenController;
|
|
use App\Http\Controllers\LocationController;
|
|
use App\Http\Controllers\ExportController;
|
|
use App\Http\Controllers\AppealController;
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| 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']);
|
|
Route::get("/listings/{pageNum}", [FrontIndexController::class, 'listings']);
|
|
Route::get("/about", [FrontIndexController::class, 'about']);
|
|
Route::get("/location/{uuid}", [FrontIndexController::class, 'location']);
|
|
Route::get("/appeals", [FrontIndexController::class, 'appeals']);
|
|
Route::post("/search", [FrontIndexController::class, 'indexSearch']);
|
|
Route::post("/appeal", [AppealController::class, 'sendAppeal']);
|
|
|
|
//exports
|
|
Route::get("/exports", [ExportController::class, 'exportIndex']);
|
|
Route::get("/exports/{type}/{rate}", [ExportController::class, 'exportCSV']);
|
|
|
|
//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("/you", [DenController::class, 'profile']);
|
|
Route::get("/member", [DenController::class, 'member']);
|
|
Route::get("/listings/{pageNum}", [DenController::class, 'location']);
|
|
Route::get("/location/edit/{uuid}", [DenController::class, 'locationEdit']);
|
|
Route::get("/locations", [DenController::class, 'locations']);
|
|
//admin actions
|
|
Route::post("/locations/edit", [LocationController::class, 'editLocation']);
|
|
Route::get("/admin/update", [LocationController::class, 'updateLocations']);
|
|
Route::get("/admin/compile", [LocationController::class, 'compileLocations']);
|
|
});
|