From 0ed141d49eda6b65c6d2497cb742162fb6599780 Mon Sep 17 00:00:00 2001 From: Toby Zerner Date: Sat, 3 Jan 2015 12:26:22 +1030 Subject: [PATCH] Clean up routes --- ember/app/router.js | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/ember/app/router.js b/ember/app/router.js index b6afe1a0d..7e5ad6637 100644 --- a/ember/app/router.js +++ b/ember/app/router.js @@ -7,17 +7,19 @@ var Router = Ember.Router.extend({ }); Router.map(function() { - this.resource('categories', { path: '/categories' }); - this.resource('discussions', { path: '/' }, function() { - this.resource('discussion', { path: '/:id/:slug' }); + this.resource('discussions', {path: '/'}, function() { + this.resource('discussion', {path: '/:id/:slug'}, function() { + this.route('near', {path: '/:near'}); + }); }); - this.resource('user', { path: '/user/:username' }, function() { + this.resource('user', {path: '/u/:username'}, function() { this.route('activity'); this.route('posts'); - this.route('preferences'); + this.resource('preferences'); }); + }); export default Router;