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

Method getHref

lib/thing.ts:154–160  ·  view source on GitHub ↗

* Get this thing's href. * * @returns {String} The href.

()

Source from the content-addressed store, hash-verified

152 * @returns {String} The href.
153 */
154 getHref(): string {
155 if (this.hrefPrefix) {
156 return this.hrefPrefix;
157 }
158
159 return '/';
160 }
161
162 /**
163 * Get this thing's UI href.

Callers 2

getMethod · 0.45
getMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected