Ember-CLI: Where is the application route?

I am trying to install the rails-csrf rpm package. The instructions on the rails-csrf github website say: "Add a model to the model of your application so that your token is automatically downloaded." Where is the application route?

I think it should be app / routes / application.js, but this file does not exist. Shouldn't this be created by default with the new ember command?

+6
source share
1 answer

It is not created by default.

You can use the ember-cli generator to create:

$ ember generate route application 

Hope this helps!

+17
source

Source: https://habr.com/ru/post/981590/


All Articles