July 2018
Beginner
100 pages
2h 7m
English
{ method: 'PUT', path: '/todo/{id}', handler: (request, reply) => { const index = request.params.id - 1; // replace the whole resource with the new one todoList[index] = request.payload; return reply({ message: 'updated' }); }}

{ "message": "updated" ...Read now
Unlock full access