hi team,
new in kibana and writiing custom endpoint for the POST requests for my plugin to update data from frontend.
my GET endpoint looks like this:
server.route({
path: '/getmydata',
method: 'GET',
handler(req, reply) {
return callWithRequest(req, 'search',{
'index':'myindex',
'q':'all'
});
}
});
and how the POST endpoint should look like ? It should update my index from frontend.
P.S. timelion open code, unfortunately does not explain any sense for me.