1
0
mirror of https://github.com/flarum/core.git synced 2025-07-24 02:01:19 +02:00
Files
php-flarum/ember/app/router.js
2015-03-12 10:40:03 +10:30

25 lines
546 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');
this.route('posts');
this.route('edit');
});
this.resource('settings');
});
export default Router;