feat: add env-based super admin authentication and complete role & permission system
deploy-chabokan / deploy (push) Canceled after 0s
deploy-chabokan / deploy (push) Canceled after 0s
This commit is contained in:
@@ -19,6 +19,10 @@ module.exports = (app) => {
|
||||
// Create a document to force MongoDB to actually create the DB and collection
|
||||
await MyModel.create({ name: 'test' })
|
||||
|
||||
// Auto-sync permissions defined in permissionList.js
|
||||
const { syncPermissions } = require('../components/permission/permissionService')
|
||||
await syncPermissions()
|
||||
|
||||
app.listen(port, function () {
|
||||
console.log('Server Started On Port ' + port)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user