You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For now there is no chance to catch all these 3 endpoints with a single custom middleware. Maybe to have a mock definition in a path like below could be useful:
mocks/api/users/__user_id*__/ANY.js
Notice the star char in the wildcard name. That could mean, that wildcard will match all of this paths and nested paths.
Let's think about this...
The text was updated successfully, but these errors were encountered:
the correct path would be mocks/api/users/__user_id__/*/ANY.js so the * indicated to use all nested paths, but a user id is still required. mocks/api/users/*/ANY.js would match all even without user id
To have a chance to define a mock that will catch all requests that starts with a path could be great.
For example, lets say we have 2 endpoints like below:
For now there is no chance to catch all these 3 endpoints with a single custom middleware. Maybe to have a mock definition in a path like below could be useful:
Notice the star char in the wildcard name. That could mean, that wildcard will match all of this paths and nested paths.
Let's think about this...
The text was updated successfully, but these errors were encountered: