@afeefa/vue-app 0.0.304 → 0.0.305

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- 0.0.304
1
+ 0.0.305
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@afeefa/vue-app",
3
- "version": "0.0.304",
3
+ "version": "0.0.305",
4
4
  "description": "",
5
5
  "author": "Afeefa Kollektiv <kollektiv@afeefa.de>",
6
6
  "license": "MIT",
@@ -109,7 +109,12 @@ export class AfeefaAdmin {
109
109
  }
110
110
 
111
111
  // setup api resources
112
- apiResourcesPlugin.register(this._apiConfig.models, this._apiConfig.apis)
112
+ let apis = this._apiConfig.apis
113
+ if (typeof apis === 'function') {
114
+ apis = apis()
115
+ }
116
+
117
+ apiResourcesPlugin.register(this._apiConfig.models, apis)
113
118
  Vue.use(apiResourcesPlugin)
114
119
  await apiResourcesPlugin.schemasLoaded()
115
120
 
@@ -18,7 +18,9 @@ class AdminConfig {
18
18
 
19
19
  icons: {},
20
20
 
21
- translations: []
21
+ translations: [],
22
+
23
+ auth: {}
22
24
  }
23
25
 
24
26
  config = {