tachybase_todo/packages/plugin-permissions/src/server.ts
chenos 9daae13c68
feat: improve plugins (#14)
* feat: delete defined resources

* feat: api client

* feat: view fields & tab field options & page info...

* fix: view type
2020-11-13 22:01:14 +08:00

13 lines
336 B
TypeScript

import path from 'path';
import Database from '@nocobase/database';
import Resourcer from '@nocobase/resourcer';
export default async function (options = {}) {
const database: Database = this.database;
const resourcer: Resourcer = this.resourcer;
database.import({
directory: path.resolve(__dirname, 'collections'),
});
}