Implement install and update system for the bot
- LINUX OR WINDOW WSL ONLY
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user