egg-thing-parser
Version:
thing model parser
15 lines (12 loc) • 335 B
JavaScript
const path = require('path');
module.exports = app => {
app.beforeStart(async () => {
app.loader.loadToApp(path.join(__dirname, './lib'), 'thing', {
initializer: File => {
return new File(app);
},
});
app.loader.loadToApp(path.join(__dirname, './app/schema'), 'thingSchema');
});
};
;