DockYard / ember-admin

Admin backend for ember-cli projects
MIT License
241 stars 37 forks source link

Changing default API endpoints #25

Closed Globegitter closed 9 years ago

Globegitter commented 10 years ago

For our API we already have a system in place on the backend that checks if a user is an admin or not and based on that gives the right responses/restricts access. So is it possible to override the defaults that ember-admin is not accessing /api/admin/model, but just /api/model? I did find a way how to change it in the addon itself, by simply removing namespaces.push('admin'); in stores/admin.js but is there some way to override it in the app itself?

Btw, this looks like a great addon, thanks for publishing it.

knownasilya commented 10 years ago

:+1: totally would love to see something like this as well.

bcardarella commented 10 years ago

Sorry I must have missed this. Definitely :+1: I'll work on this over the weekend

bcardarella commented 10 years ago

@Globegitter @knownasilya I just released 0.0.8 with this fix

Globegitter commented 9 years ago

https://github.com/dockyard/ember-admin/pull/43 should now completely fix this.