"use strict"; const { ROOT_PATH, LIB_PATH, API_CONFIG } = process.env; const apiConfig = require( `${ROOT_PATH}/${API_CONFIG}` ); const postTest = async(req, res) => { res.send({ msg:"Hello world!", data:{ apiQuery:req.query, apiParams:req.params.params, body:req.body, } }); }; const getVersion = async(req, res) => { res.send( apiConfig.version ); }; module.exports = { postTest , getVersion };