diff --git a/routes/api.php b/routes/api.php index c641ca5..d4eae93 100644 --- a/routes/api.php +++ b/routes/api.php @@ -2,17 +2,6 @@ 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(); +Route::get('/users', function() { + return factory('App\User', 10)->make(); });