Skip to content

Commit

Permalink
feat(docs): redirect old router on Fab to the new one
Browse files Browse the repository at this point in the history
  • Loading branch information
rstoenescu committed Feb 12, 2020
1 parent cbb0796 commit 2e0e233
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/src-ssr/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ app.use('/', serve('.', true))
// we extend the custom common dev & prod parts here
extension.extendApp({ app })

app.get('/layout/floating-action-button', (_, res) => {
res.redirect('/vue-components/floating-action-button')
})

// this should be last get(), rendering with SSR
app.get('*', (req, res) => {
res.setHeader('Content-Type', 'text/html')
Expand Down

0 comments on commit 2e0e233

Please sign in to comment.