Skip to content

Instantly share code, notes, and snippets.

@indreklasn
Last active September 7, 2020 20:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save indreklasn/d6cae5356f2a3f6067dca12369903cdf to your computer and use it in GitHub Desktop.
Save indreklasn/d6cae5356f2a3f6067dca12369903cdf to your computer and use it in GitHub Desktop.
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