Semi functional client webUI
- can update client info for sure - Working on notifications now
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
const express = require('express');
|
||||
const router = express.Router();
|
||||
// Controllers
|
||||
const { requestCheckIn, getPresets, updatePreset, addNewPreset, removePreset, updateClient } = require("../controllers/clientController");
|
||||
const { requestCheckIn, getPresets, updatePreset, addNewPreset, removePreset, updateClient, updateClientConfigWrapper } = require("../controllers/clientController");
|
||||
|
||||
/** GET Request a check in from the client
|
||||
* Queue the client to check in with the server
|
||||
@@ -11,16 +11,21 @@ const { requestCheckIn, getPresets, updatePreset, addNewPreset, removePreset, up
|
||||
*/
|
||||
router.get('/requestCheckIn', requestCheckIn);
|
||||
|
||||
/** GET Object of all known presets
|
||||
* Query the client to get all the known presets
|
||||
*/
|
||||
router.put('/', );
|
||||
|
||||
/** GET Object of all known presets
|
||||
* Query the client to get all the known presets
|
||||
*/
|
||||
router.get('/presets', getPresets);
|
||||
|
||||
/**
|
||||
* PUT An update to the running client config (not radio config)
|
||||
* @param {number} req.body.id The ID given to the node to update
|
||||
* @param {string} req.body.name The name of the node
|
||||
* @param {string} req.body.ip The IP the server can contact the node on
|
||||
* @param {number} req.body.port The port the server can contact the node on
|
||||
* @param {string} req.body.location The physical location of the node
|
||||
*/
|
||||
router.put('/', updateClientConfigWrapper);
|
||||
|
||||
/** POST Update to preset
|
||||
*
|
||||
* @param req The request sent from the master
|
||||
|
||||
Reference in New Issue
Block a user