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

Revision

Revision 2 | Revision 7 | Zur aktuellen Revision | Details | Vergleich mit vorheriger | Letzte Änderung | Log anzeigen | RSS feed

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