code: func getModuleRoutes(moduleName, joinedPath string, validate bool) (routes []*Route, err *Error) {
  	// Look up the module.  It may be not found due to the common case of e.g. the
  	// testrunner module being active only in dev mode.
  	module, found := ModuleByName(moduleName)
  	if !found {
  		routerLog.Debug("getModuleRoutes: Skipping routes for inactive module", "module", moduleName)
  		return nil, nil
  	}
  	routePath := filepath.Join(module.Path, "conf", "routes")
  	if _, e := os.Stat(routePath); e == nil {
  		routes, err = parseRoutesFile(module, routePath, joinedPath, validate)
  	}
  	if err == nil {
  		for _, route := range routes {
  			route.ModuleSource = module
  		}
  	}
  
  	return routes, err
  }
docs: // getModuleRoutes loads the routes file for the given module and returns the
  // list of routes.