testing routes

This commit is contained in:
Daniel Cortés
2019-06-16 21:56:22 -04:00
parent 36732b5810
commit f024cb509e

View File

@@ -2,17 +2,6 @@
use Illuminate\Http\Request; use Illuminate\Http\Request;
/* Route::get('/users', function() {
|-------------------------------------------------------------------------- return factory('App\User', 10)->make();
| 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();
}); });