mirror of
https://gitlab.com/bramw/baserow.git
synced 2025-04-24 05:03:02 +00:00
15 lines
356 B
JavaScript
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)
|
|
})
|
|
}
|