I think the reason for it is that it’s a pretty standard convention to pluralize API endpoints for a resource like that, and therefore pluralizing is a sensible default. For example it would be very common to have a ‘user’ model and have the API endpoints be /users
and /users/:id
.
To customize it, put the following in your adapter:
// don't pluralize, just return type as-is
pathForType: function(type) {
return type;
},
You can customize it per-model if you use a per-model adapter, or application-wide with the application adapter.