POST / - Create a new entity
({ body }, res)
| 22 | |
| 23 | /** POST / - Create a new entity */ |
| 24 | create({ body }, res) { |
| 25 | body.id = facets.length.toString(36); |
| 26 | facets.push(body); |
| 27 | res.json(body); |
| 28 | }, |
| 29 | |
| 30 | /** GET /:id - Return a given entity */ |
| 31 | read({ params }, res) { |
nothing calls this directly
no outgoing calls
no test coverage detected