Browse code

initial-commit

rcraig12 authored on 11/11/2018 19:37:45
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,18 @@
1
+<?php
2
+
3
+use Illuminate\Http\Request;
4
+
5
+/*
6
+|--------------------------------------------------------------------------
7
+| API Routes
8
+|--------------------------------------------------------------------------
9
+|
10
+| Here is where you can register API routes for your application. These
11
+| routes are loaded by the RouteServiceProvider within a group which
12
+| is assigned the "api" middleware group. Enjoy building your API!
13
+|
14
+*/
15
+
16
+Route::middleware('auth:api')->get('/user', function (Request $request) {
17
+    return $request->user();
18
+});