Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 3878be5

Browse files
nviemgol
authored andcommitted
feat($resource): Make stripping of trailing slashes configurable.
First, this now uses a flat object configuration, similar to `$httpBackend`. This should make configuring this provider much more familiar. This adds a fourth optional argument to the `$resource()` constructor, supporting overriding global `$resourceProvider` configuration. Now, both of these ways of configuring this is supported: app.config(function($resourceProvider) { $resourceProvider.defaults.stripTrailingSlashes = false; }); or per instance: var CreditCard = $resource('/some/:url/', ..., ..., { stripTrailingSlashes: false });
1 parent acfcbdf commit 3878be5

File tree

2 files changed

+320
-235
lines changed

2 files changed

+320
-235
lines changed

0 commit comments

Comments
 (0)