Revision 2 | Revision 7 | Zur aktuellen Revision | Blame | Vergleich mit vorheriger | Letzte Änderung | Log anzeigen | RSS feed
<?phpuse App\Http\Controllers\BasketController;use App\Http\Controllers\BuyController;use App\Http\Controllers\ShippingController;use App\Http\Controllers\UserController;use Illuminate\Support\Facades\DB;use Illuminate\Support\Facades\Schema;use PHPHtmlParser\Dom;use App\Models\Action;use App\Models\Item;use App\Models\Directory;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" );} );