feat(settings): add autosave settings API endpoints and persistence
deploy-chabokan / deploy (push) Canceled after 0s

This commit is contained in:
2026-08-19 07:27:07 +03:30
parent fb4a98f83c
commit 30ea3aed84
3 changed files with 72 additions and 0 deletions
+12
View File
@@ -43,4 +43,16 @@ router.post(
settingController.seedDatabase
)
router.get(
'/autosave',
perm.requires('admindashboard', 'viewdashboard', 'getallpermissions'),
settingController.getAutoSaveSetting
)
router.put(
'/autosave',
perm.requires('admindashboard', 'viewdashboard', 'getallpermissions'),
settingController.updateAutoSaveSetting
)
module.exports = router