Updated dependencies to latest version.
Improvement & bug fixes.
Support of node active LTS 12.16.
Added Request Parameter Validation Function
- Use
validation
function exported from this module to validate request params.
'use strict';
const Router = require('koa-router');
const router = new Router();
const userController = require('../controller/user');
const {validation} = require('swagger-generator-koa');
var requestModel = require('../requestModel/users');
const BASE_URL = `/users`;
router.post(`${BASE_URL}/`, validation(requestModel[0]), userController.createUser);
module.exports = router;