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

Revision

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

Revision Autor Zeilennr. Zeile
2 lars 1
<?php
2
 
7 lars 3
    use App\Http\Controllers\BackendController;
2 lars 4
    use Illuminate\Support\Facades\DB;
5
    use Illuminate\Support\Facades\Schema;
6
    use PHPHtmlParser\Dom;
7
    use Illuminate\Support\Facades\Route;
8
    use PHPHtmlParser\Exceptions\ChildNotFoundException;
9
    use PHPHtmlParser\Exceptions\CircularException;
10
    use PHPHtmlParser\Exceptions\CurlException;
11
    use PHPHtmlParser\Exceptions\NotLoadedException;
12
    use PHPHtmlParser\Exceptions\StrictException;
13
 
14
    /*
15
    |--------------------------------------------------------------------------
16
    | Web Routes
17
    |--------------------------------------------------------------------------
18
    |
19
    | Here is where you can register web routes for your application. These
20
    | routes are loaded by the RouteServiceProvider within a group which
21
    | contains the "web" middleware group. Now create something great!
22
    |
23
     */
24
 
25
    $GLOBALS["INI"] = getConfig();
26
    session_start();
5 lars 27
    Route::view( '/login', "login" )->name( 'login' );
28
    Route::post( '/login', [ BackendController::class, 'store' ] );
29
    Route::middleware( 'auth' )->group( function ()
2 lars 30
    {
5 lars 31
        Route::get( '/logout', [ BackendController::class, 'destroy' ] )->name( 'logout' );
32
        Route::view( "/index", "index" );
33
    } );