MCPcopy Create free account
hub / github.com/developit/express-es6-rest-api / read

Function read

server/api/facets.js:31–33  ·  view source on GitHub ↗

GET /:id - Return a given entity

({ params }, res)

Source from the content-addressed store, hash-verified

29
30 /** GET /:id - Return a given entity */
31 read({ params }, res) {
32 res.json(req.facet);
33 },
34
35 /** PUT /:id - Update a given entity */
36 update({ facet, body }, res) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected