Subversion-Projekte lars-tiefland.webanos.faltradxxs.de

Revision

Revision 5 | Revision 23 | Zur aktuellen Revision | Blame | Vergleich mit vorheriger | Letzte Änderung | Log anzeigen | RSS feed

<?php

    use App\Http\Controllers\BackendController;
    use Illuminate\Support\Facades\DB;
    use Illuminate\Support\Facades\Schema;
    use PHPHtmlParser\Dom;
    use Illuminate\Support\Facades\Route;
    use PHPHtmlParser\Exceptions\ChildNotFoundException;
    use PHPHtmlParser\Exceptions\CircularException;
    use PHPHtmlParser\Exceptions\CurlException;
    use PHPHtmlParser\Exceptions\NotLoadedException;
    use PHPHtmlParser\Exceptions\StrictException;

    /*
    |--------------------------------------------------------------------------
    | Web Routes
    |--------------------------------------------------------------------------
    |
    | Here is where you can register web routes for your application. These
    | routes are loaded by the RouteServiceProvider within a group which
    | contains the "web" middleware group. Now create something great!
    |
     */

    $GLOBALS["INI"] = getConfig();
    session_start();
    Route::view( '/login', "login" )->name( 'login' );
    Route::post( '/login', [ BackendController::class, 'store' ] );
    Route::middleware( 'auth' )->group( function ()
    {
        Route::get( '/logout', [ BackendController::class, 'destroy' ] )->name( 'logout' );
        Route::view( "/index", "index" );
    } );