MCPcopy Index your code
hub / github.com/WebThingsIO/webthing-node / getThing

Function getThing

lib/server.ts:124–126  ·  view source on GitHub ↗

* Get the thing this request is for. * * @param {Object} req The request object * @returns {Object} The thing, or null if not found.

(req: express.Request)

Source from the content-addressed store, hash-verified

122 * @returns {Object} The thing, or null if not found.
123 */
124 getThing(req: express.Request): Thing|null {
125 return this.things.getThing(req.params.thingId);
126 }
127}
128
129/**

Callers

nothing calls this directly

Calls 1

getThingMethod · 0.45

Tested by

no test coverage detected