mirror of
https://github.com/flarum/framework.git
synced 2024-12-04 16:23:37 +08:00
24 lines
534 B
JavaScript
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;
|