tachybase_todo/packages/plugin-notifications/src/server.ts
2021-12-07 19:24:26 +08:00

12 lines
254 B
TypeScript

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