1
0
mirror of https://github.com/flarum/core.git synced 2025-06-11 09:03:03 +02:00

Fix app.route initialization

The first argument being an object breaks the forum, since a function can work in `Object.assign` if it is the first argument.
This commit is contained in:
Alexander Skvortsov
2021-12-01 17:05:57 -05:00
parent 5a9f60d250
commit c7662a320f

@ -80,7 +80,7 @@ export default class ForumApplication extends Application {
routes(this);
this.route = Object.assign({}, (Object.getPrototypeOf(Object.getPrototypeOf(this)) as Application).route.bind(this), makeRouteHelpers(this));
this.route = Object.assign((Object.getPrototypeOf(Object.getPrototypeOf(this)) as Application).route.bind(this), makeRouteHelpers(this));
}
/**