mirror of
https://github.com/flarum/core.git
synced 2025-08-04 15:37:51 +02:00
Upgrade ember-cli to 0.1.4 and fix related breakage. closes #18
This commit is contained in:
@@ -1,12 +1,13 @@
|
||||
import Ember from 'ember';
|
||||
import config from './config/environment';
|
||||
|
||||
console.log(config.locationType);
|
||||
var Router = Ember.Router.extend({
|
||||
location: FlarumENV.locationType
|
||||
location: config.locationType
|
||||
});
|
||||
|
||||
Router.map(function() {
|
||||
|
||||
this.resource('categories', { path: '/categories' });
|
||||
this.resource('categories', { path: '/categories' });
|
||||
|
||||
this.resource('discussions', { path: '/' }, function() {
|
||||
this.resource('discussion', { path: '/:id/:slug' });
|
||||
@@ -18,7 +19,6 @@ Router.map(function() {
|
||||
this.route('discussions');
|
||||
this.route('preferences');
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
export default Router;
|
||||
|
Reference in New Issue
Block a user