feat: add env-based super admin authentication and complete role & permission system
deploy-chabokan / deploy (push) Canceled after 0s

This commit is contained in:
2026-08-18 00:08:04 +03:30
parent 86655f2b69
commit 2b94fdb034
11 changed files with 814 additions and 64 deletions
+4
View File
@@ -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)
})