mirror of
https://gitlab.com/bramw/baserow.git
synced 2025-04-13 00:38:06 +00:00
16 lines
381 B
JavaScript
16 lines
381 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'
|
|
})
|
|
|
|
// Add all the related routes.
|
|
this.extendRoutes(routes => {
|
|
routes.push(...databaseRoutes)
|
|
})
|
|
}
|