13 lines
748 B
PHP
13 lines
748 B
PHP
<?php
|
|
|
|
use Illuminate\Support\Facades\Route;
|
|
use IriksIT\Manager\Http\Controllers\AssetController;
|
|
use IriksIT\Manager\Http\Controllers\LoginController;
|
|
use IriksIT\Manager\Http\Controllers\MascotController;
|
|
|
|
// Outside `auth`: the login of the manager (the page itself is the shell, the answer is JSON) and its built files.
|
|
Route::get('/_assets/{file}', AssetController::class)->name('assets')->where('file', '[a-z.]+');
|
|
Route::get('/_assets/mascot/{name}', MascotController::class)->name('mascot')->where('name', '[a-z]+');
|
|
Route::get('/login', fn () => abort(404))->name('login'); // the shell answers browsers before this runs
|
|
Route::post('/login', [LoginController::class, 'store'])->name('login.store')->middleware('throttle:manager-login');
|