diff options
| author | horus_arch | 2018-02-07 18:07:53 +0100 |
|---|---|---|
| committer | horus_arch | 2018-02-07 18:07:53 +0100 |
| commit | 92eb8143762e116e8959f6270271fd5540ca50ac (patch) | |
| tree | a9fdc5009b9816fb448431b24bac38f7a215d40d /site/routes/api.php | |
| parent | 71950479fbd6088f249e5fda3b180f294d1d745d (diff) | |
| download | alkobote-92eb8143762e116e8959f6270271fd5540ca50ac.tar.gz | |
Adds basic site in laravel.
Diffstat (limited to 'site/routes/api.php')
| -rw-r--r-- | site/routes/api.php | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/site/routes/api.php b/site/routes/api.php new file mode 100644 index 0000000..c641ca5 --- /dev/null +++ b/site/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(); +}); |
