Nested route for CRUD

Hi there!

I’m new to Ember. I have a classic Post-Comment model structure. Post has many comments. I need to send all new comments to back-end to /posts//comments instead of /comments. Is there a was to do it? Googling gives many links to questions but not to answers :frowning:

Override the buildURL method for the model on the Adapter: RESTAdapter - 4.6 - Ember API Documentation

Possibly of interest RFC: Ember Data url templates by amiel · Pull Request #4 · emberjs/rfcs · GitHub and corresponding addon GitHub - amiel/ember-data-url-templates: an ember-addon to allow building urls with url templates instead of defining buildURL.

thank you, ember-data-url-templates - that’s what I needed! Everything works :slight_smile: