Closed timarney closed 4 years ago
Simplify getViewData + getDefaultMiddleware to remove the JS spread operator from the route code
You can now use
routeUtils.getViewData(req, customVars)
vs
{ ...routeUtils.getViewData(req), jsFiles }
and
routeUtils.getDefaultMiddleware({ schema: Schema, name: name })
[ ...routeUtils.getDefaultMiddleware({ schema: Schema, name: name }) ]
Closes https://github.com/cds-snc/node-starter-app/issues/64
This pull request introduces 1 alert when merging 7e355c04de50bafeeca590255ea03da35286dc16 into 354deca23518856d2a3b0c3942530c20d37f11eb - view on LGTM.com
new alerts:
Simplify getViewData + getDefaultMiddleware to remove the JS spread operator from the route code
You can now use
vs
and
vs
Closes https://github.com/cds-snc/node-starter-app/issues/64