PageRenderTime 15ms CodeModel.GetById 11ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/routes/api.php

https://bitbucket.org/ErickJoaquin/pruebainformatik
PHP | 18 lines | 5 code | 3 blank | 10 comment | 0 complexity | 6f9c7fe6968b8f2d0198a78b9ab271d6 MD5 | raw file
 1<?php
 2
 3use 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
16Route::middleware('auth:api')->get('/user', function (Request $request) {
17    return $request->user();
18});