Removed unused route and its own function

This commit is contained in:
Jesús Ángel González 2018-04-30 15:27:07 +02:00
parent cee6b6169e
commit 8f2c371312
2 changed files with 0 additions and 17 deletions

View File

@ -436,20 +436,6 @@ export default class WazuhApi {
}
}
postErrorLog (req, reply) {
if (!req.payload.message) {
return reply({
'statusCode': 500,
'message': 'You must provide at least one error message to log'
});
} else {
return reply({ statusCode: 200, message: 'Error logged succesfully' });
}
}
getConfigurationFile (req,reply) {
try{
const configFile = yml.load(fs.readFileSync(path.join(__dirname,'../../config.yml'), {encoding: 'utf-8'}));

View File

@ -30,9 +30,6 @@ export default (server, options) => {
// Return a PCI requirement description
server.route({ method: 'GET', path: '/api/wazuh-api/pci/{requirement}', handler: (req,res) => ctrl.getPciRequirement(req,res) });
// Write in debug log
server.route({ method: 'POST', path: '/api/wazuh/errlog', handler: (req,res) => ctrl.postErrorLog(req,res) });
// COMMENT HERE
server.route({ method: 'GET', path: '/api/wazuh-api/fetchAgents', handler: (req,res) => ctrl.fetchAgents(req,res) });