ro
7abd6d44a0
The script for collection blocklist info was getting a little heavy, so it's been split in two to make it more accessible and easier to maintain. The first part collects data from current sources and stores it for the second part of the script, which compiles all the data and updated the database. The Source model was expanded to track votes so block and silence counts can be easily verified on the backend.
50 lines
2 KiB
PHP
50 lines
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("/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']);
|
|
Route::get("/admin/compile", [LocationController::class, 'compileLocations']);
|
|
});
|