PR CI / ledger (pull_request) Successful in 4s
PR CI / flow (pull_request) Successful in 4s
PR CI / test (stable) (pull_request) Successful in 45s
PR CI / ui (pull_request) Successful in 48s
PR CI / test (lowest) (pull_request) Successful in 50s
PR CI / security (pull_request) Successful in 54s
PR CI / pr-ci (pull_request) Successful in 2s
PR CI / release-automerge (pull_request) Successful in 3s
11 lines
589 B
PHP
11 lines
589 B
PHP
<?php
|
|
|
|
use Illuminate\Support\Facades\Route;
|
|
use IriksIT\Manager\Http\Controllers\AssetController;
|
|
use IriksIT\Manager\Http\Controllers\LoginController;
|
|
|
|
// 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('/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');
|