feat(seeder): add one-time database seeding endpoint with status tracking
deploy-chabokan / deploy (push) Canceled after 0s

This commit is contained in:
2026-08-19 06:49:53 +03:30
parent 8bdd5af719
commit 284594c782
4 changed files with 96 additions and 2 deletions
+12
View File
@@ -31,4 +31,16 @@ router.put(
settingController.bulkUpdateSearchSettings
)
router.get(
'/seed-status',
perm.requires('admindashboard', 'viewdashboard', 'getallpermissions'),
settingController.getSeedStatus
)
router.post(
'/seed-database',
perm.requires('admindashboard', 'viewdashboard', 'getallpermissions'),
settingController.seedDatabase
)
module.exports = router