vendredi 19 juin 2015

RESTful service which always ends with an "/"

I have to connect to a RESTful service that ends every URL with an "/".

The list of products is at

http://ift.tt/1IoqTAH

And the product with the ID 1 is at

http://ift.tt/1BnZy4P

This is my current app/adapters/products.js

import DS from 'ember-data';

export default DS.RESTAdapter.extend({
  host: 'http://company.com',
  namespace: 'api'
});

Is there a way to configure it so that it always ends a "/" at the end?




Aucun commentaire:

Enregistrer un commentaire