mirror of
https://github.com/valitydev/wazuh-kibana-app.git
synced 2024-11-06 18:05:20 +00:00
Added pattern as parameter for top route
This commit is contained in:
parent
5e355192d3
commit
4ef3371da1
@ -32,7 +32,7 @@ export default (server, options) => {
|
||||
server.route({ method: 'GET', path: '/api/wazuh-elastic/pattern/{pattern}', handler: (req,res) => ctrl.checkPattern(req,res) });
|
||||
|
||||
// Returns the agent with most alerts
|
||||
server.route({ method: 'GET', path: '/api/wazuh-elastic/top/{mode}/{cluster}/{field}', handler: (req,res) => ctrl.getFieldTop(req,res) });
|
||||
server.route({ method: 'GET', path: '/api/wazuh-elastic/top/{mode}/{cluster}/{field}/{pattern}', handler: (req,res) => ctrl.getFieldTop(req,res) });
|
||||
|
||||
// Return Wazuh Appsetup info
|
||||
server.route({ method: 'GET', path: '/api/wazuh-elastic/setup', handler: (req,res) => ctrl.getSetupInfo(req,res) });
|
||||
|
Loading…
Reference in New Issue
Block a user