init
This commit is contained in:
8
routes/api.php
Normal file
8
routes/api.php
Normal file
@@ -0,0 +1,8 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\Support\Facades\Route;
|
||||
|
||||
Route::get('/user', function (Request $request) {
|
||||
return $request->user();
|
||||
})->middleware('auth:sanctum');
|
||||
8
routes/console.php
Normal file
8
routes/console.php
Normal file
@@ -0,0 +1,8 @@
|
||||
<?php
|
||||
|
||||
// use Illuminate\Foundation\Inspiring;
|
||||
// use Illuminate\Support\Facades\Artisan;
|
||||
|
||||
// Artisan::command('inspire', function () {
|
||||
// $this->comment(Inspiring::quote());
|
||||
// })->purpose('Display an inspiring quote')->hourly();
|
||||
5
routes/web.php
Normal file
5
routes/web.php
Normal file
@@ -0,0 +1,5 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Support\Facades\Route;
|
||||
|
||||
Route::get('/', fn() => 'V' . config('app.version'));
|
||||
Reference in New Issue
Block a user