seriema / angular-apimock

Automatically route your API calls to static JSON files, for hiccup free front–end development.

Home Page:johansson.jp/angular-apimock

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Use original request if the reroute fails

jonathandsouza opened this issue · comments

commented

Hi ,

Is there a way to configure angular-apimock to use the original request if the reroute fails. I believe in the current implementation its possible to do the opposite (i.e try the original request, if it fails then it tries to recover with a reroute) by setting apimock=auto.

Thanks & Regards

You're right, it's possible to do the opposite of what you want. I'll consider it, but it might take a while. I'd gladly appreciate a PR if you want to contribute.