tachybase_todo/packages/plugin-collections/src/server.ts

13 lines
362 B
TypeScript
Raw Normal View History

import path from 'path';
import Database, { ModelCtor } from '@nocobase/database';
import Resourcer from '@nocobase/resourcer';
export default async function (this: any, options = {}) {
const database: Database = this.database;
const resourcer: Resourcer = this.resourcer;
2020-11-11 20:57:18 +08:00
database.import({
directory: path.resolve(__dirname, 'collections'),
});
}