PUT /:id - Update a given entity
({ facet, body }, res)
| 34 | |
| 35 | /** PUT /:id - Update a given entity */ |
| 36 | update({ facet, body }, res) { |
| 37 | for (let key in body) { |
| 38 | if (key!=='id') { |
| 39 | facet[key] = body[key]; |
| 40 | } |
| 41 | } |
| 42 | res.sendStatus(204); |
| 43 | }, |
| 44 | |
| 45 | /** DELETE /:id - Delete a given entity */ |
| 46 | delete({ facet }, res) { |
nothing calls this directly
no outgoing calls
no test coverage detected