feat: retrieve default resource views.

This commit is contained in:
a.bouhuolia
2021-08-04 15:14:21 +02:00
parent 2822270ac3
commit 4eb20162bb
3 changed files with 50 additions and 460 deletions

View File

@@ -13,4 +13,8 @@ export default (Model) =>
static getDefaultViewBySlug(viewSlug) {
return this.defaultViews.find((view) => view.slug === viewSlug) || null;
}
static getDefaultViews() {
return this.defaultViews;
}
};