framework/ember/app/router.js
2015-03-17 17:06:12 +10:30

24 lines
534 B
JavaScript

import Ember from 'ember';
import config from './config/environment';
var Router = Ember.Router.extend({
location: config.locationType
});
Router.map(function() {
this.resource('index', {path: '/'}, function() {
this.resource('discussion', {path: '/:id/:slug'}, function() {
this.route('near', {path: '/:near'});
});
});
this.resource('user', {path: '/u/:username'}, function() {
this.route('activity', {path: '/'});
this.route('edit');
});
this.resource('settings');
});
export default Router;