PHP Classes

File: routes/web.php

Recommend this page to a friend!
  Classes of Thierry Feuzeu   Jaxon DB Admin   routes/web.php   Download  
File: routes/web.php
Role: Application script
Content typex: text/plain
Description: Application script
Class: Jaxon DB Admin
Web application to manage SQL of databases
Author: By
Last change: Rename the middlewares.
Date: 22 days ago
Size: 604 bytes
 

Contents

Class file image Download
<?php

use Illuminate\Support\Facades\Route;
use
Laravel\Fortify\Http\Controllers\AuthenticatedSessionController;

Route::get('/', fn() => view('dbadmin'))
    ->
middleware(['auth', 'jaxon.dbadmin.config', 'jaxon.config']);

Route::get('/logging', fn() => view('logging'))
    ->
middleware(['auth', 'jaxon.logging.config'])
    ->
name('logging');

Route::post('/logging/jaxon', fn() => response()->json([]))
    ->
middleware(['web', 'jaxon.logging.config', 'jaxon.ajax']);

// Logout
Route::get('/logout', [AuthenticatedSessionController::class, 'destroy'])
    ->
name('logout.get')->middleware('auth');