modified: package.json
modified: src/websrv.js
This commit is contained in:
parent
8c0551cf9a
commit
062a351d18
@ -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",
|
||||
|
@ -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()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user