1
0
mirror of https://github.com/flarum/core.git synced 2025-08-04 15:37:51 +02:00

Remove constructor calls in app.routes, they aren't needed

This commit is contained in:
David Sevilla Martin
2019-10-22 18:45:02 -04:00
parent 6401e45b56
commit c037598537

View File

@@ -9,13 +9,13 @@ import PostsUserPage from './components/PostsUserPage';
export default class Forum extends Application {
routes = {
'index': { path: '/', component: new IndexPage() },
'index.filter': { path: '/:filter', component: new IndexPage() },
'index': { path: '/', component: IndexPage },
'index.filter': { path: '/:filter', component: IndexPage },
'user': { path: '/u/:username', component: new PostsUserPage() },
'user.posts': { path: '/u/:username', component: new PostsUserPage() },
'user.discussions': { path: '/u/:username', component: new PostsUserPage() },
'settings': { path: '/u/:username', component: new PostsUserPage() },
'user': { path: '/u/:username', component: PostsUserPage },
'user.posts': { path: '/u/:username', component: PostsUserPage },
'user.discussions': { path: '/u/:username', component: PostsUserPage },
'settings': { path: '/u/:username', component: PostsUserPage },
};
/**