mirror of
https://github.com/valitydev/wazuh-kibana-app.git
synced 2024-11-06 09:55:18 +00:00
Removed unused route and its own function
This commit is contained in:
parent
cee6b6169e
commit
8f2c371312
@ -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'}));
|
||||
|
@ -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) });
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user