Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option to remove trailing slashes #50

Merged
merged 1 commit into from
Jan 13, 2015
Merged

Conversation

dustinfarris
Copy link
Owner

This PR adds a new option to remove trailing slashes from API URLs.

Example usage:

// in your app's config/environment.js

var ENV = {
  APP: {
    API_ADD_TRAILING_SLASHES: false
    ...
  }
};

This adds a new option to the adapter config and supporting tests and
documentation.  Documentation adds a new "configuring" section with some
back-filling for other options that already exist.
benkonrath added a commit that referenced this pull request Jan 13, 2015
Add option to remove trailing slashes
@benkonrath benkonrath merged commit 47a3e87 into master Jan 13, 2015
@benkonrath
Copy link
Collaborator

Looks good. Thanks!

@g-cassie
Copy link

Did you get this working with coalesceFindIds? I ran into an issue with it before. See emberjs/data#2468

@dustinfarris
Copy link
Owner Author

@g-cassie i have not tested/integrated this with coalescing yet (which is disabled by default). It's on my radar.

@dustinfarris dustinfarris deleted the trailing-slashes branch January 13, 2015 14:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants