19 lines
1.0 KiB
PHP
19 lines
1.0 KiB
PHP
<?php
|
|
|
|
use Illuminate\Support\Facades\Route;
|
|
use IriksIT\Manager\Http\Controllers\DashboardController;
|
|
use IriksIT\Manager\Http\Controllers\LoginController;
|
|
use IriksIT\Manager\Http\Controllers\MarkdownController;
|
|
use IriksIT\Manager\Http\Controllers\ProfileController;
|
|
|
|
Route::get('/', DashboardController::class)->name('dashboard');
|
|
Route::get('/profile', [ProfileController::class, 'show'])->name('profile.show');
|
|
Route::put('/profile', [ProfileController::class, 'update'])->name('profile.update');
|
|
Route::put('/profile/view', [ProfileController::class, 'view'])->name('profile.view');
|
|
Route::post('/markdown', MarkdownController::class)->name('markdown.preview')->middleware('throttle:120,1');
|
|
Route::post('/logout', [LoginController::class, 'destroy'])->name('logout');
|
|
|
|
// A screen that exists only in the bundle of the site (`manager.extensions`) has no route of its own: a browser that
|
|
// asks for it gets the shell, which shows the screen. Anything else that asks for data gets a plain 404.
|
|
Route::fallback(fn () => abort(404));
|