forked from projects/thebadspace
7feb76517a
Implemented Oliphant's unified tier 3 blocklist and the supplementary instance audit file that tracks how many times an instance has been blocked by a trusted sources member. Keeping the update function manual for now to make sure it works smooth, then well automate so it checks on it's on at regular intervals. NOTE: Lists used are located at the following urls: https://codeberg.org/oliphant/blocklists/src/branch/main/blocklists/_unified_tier3_blocklist.csv https://codeberg.org/oliphant/blocklists/src/branch/main/blocklists/other/domain_audit_file.csv Also simplified the main nav to just include a link to the den index when logged in
41 lines
1.6 KiB
PHP
41 lines
1.6 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;
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| 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::post("/search", [FrontIndexController::class, 'indexSearch']);
|
|
|
|
//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']);
|
|
Route::get("/locations/{action?}", [DenController::class, 'location']);
|
|
Route::post("/locations/add", [LocationController::class, 'addLocation']);
|
|
//admin actions
|
|
Route::get("/admin/update", [LocationController::class, 'updateLocations']);
|
|
});
|