diff options
author | Phil Burton <philip.burton@chiaro.co.uk> | 2019-11-01 22:56:27 +0000 |
---|---|---|
committer | Phil Burton <philip.burton@chiaro.co.uk> | 2019-11-01 22:56:27 +0000 |
commit | fb0c574ed1725fe13c8ab073d2ead3fdc842c2ba (patch) | |
tree | f863fd7cecad2c674cb071b3d7a44c2de6adb51d /routes/api.php |
Added laravel project
Diffstat (limited to 'routes/api.php')
-rw-r--r-- | routes/api.php | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/routes/api.php b/routes/api.php new file mode 100644 index 0000000..c641ca5 --- /dev/null +++ b/routes/api.php @@ -0,0 +1,18 @@ +<?php + +use Illuminate\Http\Request; + +/* +|-------------------------------------------------------------------------- +| API Routes +|-------------------------------------------------------------------------- +| +| Here is where you can register API routes for your application. These +| routes are loaded by the RouteServiceProvider within a group which +| is assigned the "api" middleware group. Enjoy building your API! +| +*/ + +Route::middleware('auth:api')->get('/user', function (Request $request) { + return $request->user(); +}); |