Skip to content

Commit

Permalink
feat: 自动解析 RouterExtensionPath 默认为 private
Browse files Browse the repository at this point in the history
  • Loading branch information
孙颢 committed Dec 27, 2018
1 parent 3ca4226 commit 2461e89
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/utils/render.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,9 @@ export function getRender(
}

// TODO 自动解析 RouterExtensionPath
// if (isRouterExtensionPath(req.url)) {
// return next()
// }
if (/^\/private/.test(req.url)) {
return next()
}

res.setHeader('Content-Type', 'text/html')
res.setHeader('Server', serverInfo)
Expand Down

0 comments on commit 2461e89

Please sign in to comment.