Search code examples
javascriptember.jsember-router

can we view all the routes in emberjs aka something similar to what rake routes does in rails


As the routes file in emberjs is becoming large, I am finding it difficult to keep track of all the routes supported by emberjs app, rake routes in rails gives a list of routes in the rails app, is there a way to generate routes in similar fashion for emberjs?


Solution

  • Currently you can access all existing routes with App.Router.router.recognizer.names or just the names using Ember.keys(App.Router.router.recognizer.names).

    It's obviously not as extensive as the Rails routes but it gives a quick and dirty overview.