nocobase/packages/plugin-permissions/src/server.ts
2021-09-23 00:16:04 +08:00

13 lines
278 B
TypeScript

import path from 'path';
import { PluginOptions } from '@nocobase/server';
export default {
name: 'permissions',
async load() {
const database = this.app.db;
database.import({
directory: path.resolve(__dirname, 'collections'),
});
}
} as PluginOptions;