Skip to content

Instantly share code, notes, and snippets.

@indreklasn

indreklasn/app.js

Last active Sep 7, 2020
Embed
What would you like to do?
const User = mongoose.model('User', { name: String, email: String, surname: String })
const AdminBroOptions = {
resources: [User],
}
const AdminBro = new AdminBro(AdminBroOptions)
const router = AdminBroExpress.buildRouter(AdminBro)
// add router to express
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment