This commit is contained in:
Jonas Pfalzgraf 2024-08-24 18:14:10 +02:00
parent 6c87fd881f
commit da38227067
97 changed files with 11536 additions and 0 deletions

19
backend/routes/api.php Normal file
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();
});