1
0
mirror of https://github.com/flarum/core.git synced 2025-02-25 11:43:19 +01:00
php-flarum/ember/app/router.js

25 lines
528 B
JavaScript
Raw Normal View History

2014-12-20 16:56:46 +10:30
import Ember from 'ember';
import config from './config/environment';
2014-12-20 16:56:46 +10:30
var Router = Ember.Router.extend({
location: config.locationType
2014-12-20 16:56:46 +10:30
});
Router.map(function() {
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
});
});
2014-12-20 16:56:46 +10:30
this.resource('user', {path: '/u/:username'}, function() {
this.route('activity');
this.route('posts');
this.resource('preferences');
});
2015-01-03 12:26:22 +10:30
2014-12-20 16:56:46 +10:30
});
export default Router;