Closed a-x- closed 4 years ago
As I understand xhr-mock doesn't support express.js-like masks o_O
e.g. /users/:id
you can use path-to-regexp
Thanks for the feature request! Its not released yet but this is supported in ^3.
^3
https://github.com/jameslnewell/xhr-mock/blob/12ab29ba24e41dc24bbe9ac54861a9bc8e177376/packages/router/src/createMiddleware.test.ts#L81
As I understand xhr-mock doesn't support express.js-like masks o_O
e.g. /users/:id