1
0
Fork 0
mirror of https://gitlab.com/bramw/baserow.git synced 2025-04-13 00:38:06 +00:00
bramw_baserow/web-frontend/modules/database/module.js

15 lines
348 B
JavaScript

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