mirror of
https://github.com/flarum/core.git
synced 2025-07-30 21:20:24 +02:00
Hello world!
This commit is contained in:
24
ember/app/router.js
Normal file
24
ember/app/router.js
Normal file
@@ -0,0 +1,24 @@
|
||||
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;
|
Reference in New Issue
Block a user