mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 22:57:38 +00:00
13 lines
278 B
TypeScript
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;
|