mirror of
https://koodu.h-i.works/projects/thebadspace
synced 2025-05-06 14:41:02 -05:00
after the site is installed and the DB set up, there needed to be a way to create the first account that will be used as the admin to access the den, the admin section of tbs the system makes a check to see if this account exists and if there isn't one present, it shows the admin account set up screen on the index. it goes away after the account is created.
62 lines
2.7 KiB
PHP
62 lines
2.7 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\MemberController;
|
|
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']);
|
|
Route::post("/den/member/admin-create", [MemberController::class, 'adminCreate']);
|
|
|
|
//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("/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']);
|
|
//member stuff
|
|
Route::get("/you", [MemberController::class, 'profile']);
|
|
Route::get("/member", [MemberController::class, 'index']);
|
|
Route::get("/member/{uuid}", [MemberController::class, 'editMember']);
|
|
Route::get("/member/edit/create", [MemberController::class, 'createMember']);
|
|
//actions
|
|
Route::post("/profile/edit", [MemberController::class, 'profileEdit']);
|
|
Route::post("/member/edit", [MemberController::class, 'memberEdit']);
|
|
Route::post("/member/create", [MemberController::class, 'memberCreate']);
|
|
});
|