1️⃣Clonez https://github.com/dupontdenis/JS-BD-REST.git
🪛Completez le code du contrôleur pour obtenir :
$ node index.js
[
{ id: 1, firstname: 'me', lastname: 'ME' },
{ id: 2, firstname: 'Bob', lastname: 'Leclair' }
]
[
{ id: 1, firstname: 'me', lastname: 'ME' },
{ id: 2, firstname: 'Bob', lastname: 'Leclair' },
{ id: 3, firstname: 'D', lastname: 'D' }
]
[
{ id: 1, firstname: 'me', lastname: 'ME' },
{ id: 2, firstname: 'Bob', lastname: 'Leclair' },
{ id: 3, firstname: 'Dupont', lastname: 'D' }
]
[
{ id: 1, firstname: 'me', lastname: 'ME' },
{ id: 2, firstname: 'Bob', lastname: 'Leclair' }
]
{ id: 1, firstname: 'me', lastname: 'ME' }