This is just a simple module that allows users to rewrite outgoing urls in Angular without having to jump through hoops of creating interceptors. The idea behind this is that your entire project can use a simple prefix like
/api in all of their urls and have them all rewritten at one location. This prevents code duplication.
npm i ng-http-rewrite --save
// This is not a CommonJS module. If you're using Webpack just load it like this.var angular = ;;angular;
There is no run-time API for the url rewriter and it only works on outgoing $http requests. It will not re-write the urls of incoming requests (not would it make any sense to). Check tests for usage if you really need to.
Feel free to open an issue if you have any issues or feature requests. Pull requests are also accepted providing you have tests (we're using jasmine/karma).