mirror of
https://github.com/flarum/framework.git
synced 2024-12-13 15:13:42 +08:00
99876e9e36
An initial stab at flarum/core#126. Still WIP. Preliminary implementation of flarum/core#128 and flarum/core#13.
23 lines
594 B
JavaScript
23 lines
594 B
JavaScript
import Store from 'flarum/store';
|
|
import Forum from 'flarum/models/forum';
|
|
import User from 'flarum/models/user';
|
|
import Discussion from 'flarum/models/discussion';
|
|
import Post from 'flarum/models/post';
|
|
import Group from 'flarum/models/group';
|
|
import Activity from 'flarum/models/activity';
|
|
import Notification from 'flarum/models/notification';
|
|
|
|
export default function(app) {
|
|
app.store = new Store();
|
|
|
|
app.store.models = {
|
|
forums: Forum,
|
|
users: User,
|
|
discussions: Discussion,
|
|
posts: Post,
|
|
groups: Group,
|
|
activity: Activity,
|
|
notifications: Notification
|
|
};
|
|
}
|