Initial commit
This commit is contained in:
20
sections/test/services.js
Normal file
20
sections/test/services.js
Normal 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 };
|
||||
Reference in New Issue
Block a user