Skip to content

Instantly share code, notes, and snippets.

@cv711
Created May 16, 2013 13:15
Show Gist options
  • Save cv711/5591628 to your computer and use it in GitHub Desktop.
Save cv711/5591628 to your computer and use it in GitHub Desktop.
List all routes accessible in Ember.js app (from v 1.0.0-rc1)
//This will return objects corresponding to each segment that the route consists of.
App.Router.router.recognizer.recognize('/some_path')
//to see all the routes in your application – including nested routes.
App.Router.router.recognizer.names
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment