Initial commit

This commit is contained in:
2023-10-05 11:29:24 -06:00
commit 55f1c6e091
15 changed files with 370 additions and 0 deletions

20
sections/test/services.js Normal file
View File

@@ -0,0 +1,20 @@
"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 };