delete route

pull/1/head
Matt Huntington 5 years ago
parent bc01fafcfa
commit d676a763fc

@ -22,3 +22,9 @@ Route::get('people', function () {
$users = DB::select('SELECT * FROM people');
return $users;
});
Route::delete('people/{id}', function ($id) {
DB::delete('DELETE FROM people WHERE id = ?', [$id]);
$users = DB::select('SELECT * FROM people');
return $users;
});

Loading…
Cancel
Save