2014-12-20 16:56:46 +10:30
|
|
|
import Ember from 'ember';
|
2014-12-23 12:45:07 +10:30
|
|
|
import config from './config/environment';
|
2014-12-20 16:56:46 +10:30
|
|
|
|
|
|
|
var Router = Ember.Router.extend({
|
2014-12-23 12:45:07 +10:30
|
|
|
location: config.locationType
|
2014-12-20 16:56:46 +10:30
|
|
|
});
|
|
|
|
|
|
|
|
Router.map(function() {
|
2015-02-10 18:05:40 +10:30
|
|
|
this.resource('index', {path: '/'}, function() {
|
|
|
|
this.resource('discussion', {path: '/:id/:slug'}, function() {
|
|
|
|
this.route('near', {path: '/:near'});
|
2014-12-20 16:56:46 +10:30
|
|
|
});
|
2015-02-10 18:05:40 +10:30
|
|
|
});
|
2014-12-20 16:56:46 +10:30
|
|
|
|
2015-02-10 18:05:40 +10:30
|
|
|
this.resource('user', {path: '/u/:username'}, function() {
|
2015-03-12 12:59:32 +10:30
|
|
|
this.route('activity', {path: '/'});
|
2015-03-12 10:40:03 +10:30
|
|
|
this.route('edit');
|
2015-03-28 11:33:18 +10:30
|
|
|
this.route('settings');
|
2015-02-10 18:05:40 +10:30
|
|
|
});
|
2014-12-20 16:56:46 +10:30
|
|
|
});
|
|
|
|
|
|
|
|
export default Router;
|