extendRoutes add resolve func as param for window

This commit is contained in:
Alexandre Chopin 2017-02-23 11:02:11 +01:00
parent 6e2fb4642e
commit fd966485ee

View File

@ -210,7 +210,7 @@ function * generateRoutesAndFiles () {
templateVars.router.routes = createRoutes(files, this.srcDir)
if (typeof this.options.router.extendRoutes === 'function') {
// let the user extend the routes
this.options.router.extendRoutes(templateVars.router.routes)
this.options.router.extendRoutes(templateVars.router.routes, r)
}
// Routes for Generate command
this.routes = flatRoutes(templateVars.router.routes, '')