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

Revision

Revision 7 | Revision 24 | 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 Illuminate\Support\Facades\Route;
7
 
8
    /*
9
    |--------------------------------------------------------------------------
10
    | Web Routes
11
    |--------------------------------------------------------------------------
12
    |
13
    | Here is where you can register web routes for your application. These
14
    | routes are loaded by the RouteServiceProvider within a group which
15
    | contains the "web" middleware group. Now create something great!
16
    |
17
     */
18
 
23 lars 19
    //$GLOBALS["INI"] = getConfig();
2 lars 20
    session_start();
5 lars 21
    Route::view( '/login', "login" )->name( 'login' );
22
    Route::post( '/login', [ BackendController::class, 'store' ] );
23
    Route::middleware( 'auth' )->group( function ()
2 lars 24
    {
5 lars 25
        Route::get( '/logout', [ BackendController::class, 'destroy' ] )->name( 'logout' );
26
        Route::view( "/index", "index" );
27
    } );