Initialize laravel app

This commit is contained in:
Frankie B 2023-06-13 21:59:16 +01:00 committed by Frankie B
commit 8af402a9e2
149 changed files with 10967 additions and 1464 deletions

19
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();
});