Conexion a base de datos
This commit is contained in:
@@ -2,9 +2,7 @@
|
||||
|
||||
use Illuminate\Http\Request;
|
||||
|
||||
Route::get('/users', function() {
|
||||
if(rand(1, 10) < 3) {
|
||||
abort(500, 'We could not retrieve the users');
|
||||
}
|
||||
return factory('App\User', 10)->make();
|
||||
Route::namespace('Api')->group(function() {
|
||||
Route::get('/users', 'UsersController@index');
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user