main
Last change
on this file since 2bd3041 was c454c0f, checked in by bube-ristovska <ristovska725@…>, 12 months ago |
First commit
|
-
Property mode
set to
100644
|
File size:
570 bytes
|
Rev | Line | |
---|
[c454c0f] | 1 | <?php
|
---|
| 2 |
|
---|
| 3 | use Illuminate\Http\Request;
|
---|
| 4 | use Illuminate\Support\Facades\Route;
|
---|
| 5 |
|
---|
| 6 | /*
|
---|
| 7 | |--------------------------------------------------------------------------
|
---|
| 8 | | API Routes
|
---|
| 9 | |--------------------------------------------------------------------------
|
---|
| 10 | |
|
---|
| 11 | | Here is where you can register API routes for your application. These
|
---|
| 12 | | routes are loaded by the RouteServiceProvider and all of them will
|
---|
| 13 | | be assigned to the "api" middleware group. Make something great!
|
---|
| 14 | |
|
---|
| 15 | */
|
---|
| 16 |
|
---|
| 17 | Route::middleware('auth:sanctum')->get('/user', function (Request $request) {
|
---|
| 18 | return $request->user();
|
---|
| 19 | });
|
---|
Note:
See
TracBrowser
for help on using the repository browser.