fix(resolveMiddleware): remove legacy handler and path props

This commit is contained in:
Pooya Parsa 2021-02-22 11:37:29 +01:00
parent 29409f064f
commit 5e6fb802f3

View File

@ -61,6 +61,8 @@ export function resolveMiddleware (serverMiddleware: any[], resolvePath: (string
if (typeof handle !== 'string' || typeof route !== 'string') {
legacyMiddleware.push(m)
} else {
delete m.handler
delete m.path
middleware.push({
...m,
handle: resolvePath(handle),