diff --git a/package.json b/package.json index 68e6cf7..24fbeff 100644 --- a/package.json +++ b/package.json @@ -13,6 +13,7 @@ "forever-monitor": "^1.7.0", "fs-extra": "^0.30.0", "hapi": "^15.2.0", + "joi": "^9.2.0", "mysql": "^2.11.1", "read-chunk": "^2.0.0", "request": "^2.74.0", diff --git a/src/websrv.js b/src/websrv.js index 99ea7c7..7da7a2f 100644 --- a/src/websrv.js +++ b/src/websrv.js @@ -1,4 +1,5 @@ var hapi = require('hapi'); +var joi = require('joi'); var cfg = require('../cfg/websrv.json'); const server = new hapi.Server(); @@ -30,7 +31,7 @@ function Websrv(tlib) { config: { validate: { params: { - ID: Joi.number() + ID: joi.number() } } }