updateInfo: move updateInfo into apps table
this has many advantages: * easy to deliver the updateInfo via the apps object * after updating, the task can clear it * when apps are deleted, the info is automatically gone otherwise, it's a mess of deps between apps/updater/apptask/rest routes box update info is still in a file
This commit is contained in:
+3
-3
@@ -133,9 +133,9 @@ async function initializeExpressSync() {
|
||||
router.get ('/api/v1/eventlog/:eventId', token, authorizeAdmin, routes.eventlog.get);
|
||||
|
||||
// updater
|
||||
router.get ('/api/v1/updater/updates', token, authorizeUser, routes.updater.getUpdateInfo); // allowed for normal users to make it work for app operators
|
||||
router.post('/api/v1/updater/update', json, token, authorizeAdmin, routes.updater.update);
|
||||
router.post('/api/v1/updater/check_for_updates', json, token, authorizeAdmin, routes.updater.checkForUpdates);
|
||||
router.get ('/api/v1/updater/box_update', token, authorizeUser, routes.updater.getBoxUpdate); // allowed for normal users to make it work for app operators
|
||||
router.post('/api/v1/updater/box_update', json, token, authorizeAdmin, routes.updater.updateBox);
|
||||
router.post('/api/v1/updater/check_box_update', json, token, authorizeAdmin, routes.updater.checkBoxUpdate);
|
||||
router.get ('/api/v1/updater/autoupdate_pattern', token, authorizeAdmin, routes.updater.getAutoupdatePattern);
|
||||
router.post('/api/v1/updater/autoupdate_pattern', json, token, authorizeAdmin, routes.updater.setAutoupdatePattern);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user