* 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)
| 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 | /** |