Implement install and update system for the bot

- LINUX OR WINDOW WSL ONLY
This commit is contained in:
Logan Cusano
2023-05-27 17:00:57 -04:00
parent 79fe542143
commit ba927bae8c
5 changed files with 88 additions and 4 deletions

View File

@@ -2,7 +2,7 @@
const express = require('express');
const router = express.Router();
// Controllers
const {requestCheckIn, getPresets, updatePreset, addNewPreset, removePreset} = require("../controllers/clientController");
const { requestCheckIn, getPresets, updatePreset, addNewPreset, removePreset, updateClient } = require("../controllers/clientController");
/** GET Request a check in from the client
* Queue the client to check in with the server
@@ -45,4 +45,10 @@ router.post('/addPreset', addNewPreset);
router.post('/removePreset', removePreset);
/** POST Update the bot
*
* @param req The request sent from the master
*/
router.post('/updateClient', updateClient);
module.exports = router;