I have Ember App (built with Ember-CLI). On the backend I have Rails application which handles requests. Lets say that my API has following routes:
/model
— returns list of models
/model/1
— returns model
/model/1/download
— returns file
How can I force Ember app to start file download (using /download
path) and how can I construct link for file download from within Ember app?