1
0
Fork 0
mirror of https://gitlab.com/bramw/baserow.git synced 2025-04-24 05:03:02 +00:00
bramw_baserow/web-frontend/modules/database/module.js
2020-03-31 14:15:27 +00:00

15 lines
356 B
JavaScript

import path from 'path'
import { routes } from './routes'
export default function DatabaseModule(options) {
// Add the plugin to register the database application.
this.appendPlugin({
src: path.resolve(__dirname, 'plugin.js'),
})
// Add all the related routes.
this.extendRoutes((configRoutes) => {
configRoutes.push(...routes)
})
}