This commit is contained in:
newtbot
2023-12-21 14:25:31 +08:00
parent 694e76951d
commit 071bd25719
5 changed files with 16 additions and 2 deletions

View File

@ -1,16 +0,0 @@
var validator = require('validator');
function isNumber(data) {
if (validator.isNumeric(data))
{
console.log(data);
}
else
{
console.log("Invalid data");
}
}
module.exports = { isNumber }

View File

@ -13,7 +13,7 @@
3) send the coap request to the server
*/
const { isNumber } = require("../functions/validateData");
const { isNumber } = require("../../Web-Server/functions/validateData");
let region = ["central", "north-east", "north", "east", "west"];