Skip to content

Instantly share code, notes, and snippets.

@vadimi
Last active December 23, 2015 02:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vadimi/6566890 to your computer and use it in GitHub Desktop.
Save vadimi/6566890 to your computer and use it in GitHub Desktop.
App.Router.map(function () {
this.route('news', { path: '/' });
this.resource('news', { path: '/news' }, function () {
this.route('view', { path: '/:news_id' });
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment