MCPcopy
hub / github.com/yeoman/yo / registerRoute

Method registerRoute

lib/router.js:51–54  ·  view source on GitHub ↗

* Register a route handler * @param {String} name Name of the route * @param {Function} handler Route handler

(name, handler)

Source from the content-addressed store, hash-verified

49 * @param {Function} handler Route handler
50 */
51 registerRoute(name, handler) {
52 this.routes[name] = handler;
53 return this;
54 }
55
56 /**
57 * Update the available generators in the app

Callers 9

runYoFunction · 0.95
route-home.jsFile · 0.80
route-install.jsFile · 0.80
route-exit.jsFile · 0.80
route-help.jsFile · 0.80
router.jsFile · 0.80
route-update.jsFile · 0.80
route-run.jsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected