Webseite ohne Anmeldung läuft auf laravel

This commit is contained in:
Robert
2024-01-17 12:43:56 +01:00
parent 57a4470de3
commit bab5bfd58e
435 changed files with 37238 additions and 91 deletions

View File

@@ -0,0 +1,19 @@
<?php
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Route;
/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for your application. These
| routes are loaded by the RouteServiceProvider and all of them will
| be assigned to the "api" middleware group. Make something great!
|
*/
Route::middleware('auth:sanctum')->get('/user', function (Request $request) {
return $request->user();
});