Created
September 5, 2020 19:24
-
-
Save indreklasn/4093313eeafd54c4ba7b15641537c3c4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const AdminBro = require('admin-bro') | |
const AdminBroExpress = require('@admin-bro/express') | |
const express = require('express') | |
const app = express() | |
const adminBro = new AdminBro({ | |
databases: [], | |
rootPath: '/admin', | |
}) | |
const router = AdminBroExpress.buildRouter(adminBro) | |
app.use(adminBro.options.rootPath, router) | |
app.listen(8080, () => console.log('AdminBro is under localhost:8080/admin')) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment