Skip to content
Discussion options

You must be logged in to vote

This is a JS Plugin question.

The plugin's from and to paths are being parsed by path-to-regexp. Does the following work for you?

{
  from: '(.*)',
  to: '/work/',
  in: (next, infos) => {

  },
  out: (next, infos) => {

  },
},
{
  from: '(.*)',
  to: '/work/:slug',
  in: (next, infos) => {

  },
  out: (next, infos) => {

  },
}

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@andresclua
Comment options

Answer selected by daun
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants