1
0
mirror of https://github.com/flarum/core.git synced 2025-10-10 06:24:26 +02:00
Files
php-flarum/ember/app/router.js
Toby Zerner 74db323f83 Hello world!
2014-12-20 16:56:46 +10:30

25 lines
521 B
JavaScript

import Ember from 'ember';
var Router = Ember.Router.extend({
location: FlarumENV.locationType
});
Router.map(function() {
this.resource('categories', { path: '/categories' });
this.resource('discussions', { path: '/' }, function() {
this.resource('discussion', { path: '/:id/:slug' });
});
this.resource('user', { path: '/user/:username' }, function() {
this.route('activity');
this.route('posts');
this.route('discussions');
this.route('preferences');
});
});
export default Router;