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
Most APIs have a common prefix in all of their routes, e.g. /api/v1/
Repeating this prefix in all Pretender routes is less than ideal. It's not DRY, and an API prefix can sometimes change, requiring redundant edits across all routes.
It would be great if we could configure a shared root and specify the routes relative to this root, as shown below:
Even better, this root property could be used to limit which requests will be handled by Pretender, so that requests to other URLs that don't match would automatically pass through.
Most APIs have a common prefix in all of their routes, e.g.
/api/v1/
Repeating this prefix in all Pretender routes is less than ideal. It's not DRY, and an API prefix can sometimes change, requiring redundant edits across all routes.
It would be great if we could configure a shared root and specify the routes relative to this root, as shown below:
The text was updated successfully, but these errors were encountered: