feat(builder): support async extendRoutes (#7754)

Co-authored-by: Martin Novák <martin.novak@cleverlance.com>
This commit is contained in:
Martin Novák 2020-07-22 12:30:50 +02:00 committed by GitHub
parent 7aa46f57f7
commit b469f931f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -414,7 +414,7 @@ export default class Builder {
// router.extendRoutes method
if (typeof this.options.router.extendRoutes === 'function') {
// let the user extend the routes
const extendedRoutes = this.options.router.extendRoutes(
const extendedRoutes = await this.options.router.extendRoutes(
templateVars.router.routes,
r
)