Files
ETAApi/sections/test/services.js
2023-10-05 11:43:08 -06:00

20 lines
433 B
JavaScript

"use strict";
const apiConfig = require( process.env.ROOT_PATH + process.env.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 };