UNPKG

kibana-123

Version:

Kibana is an open source (Apache Licensed), browser based analytics and search dashboard for Elasticsearch. Kibana is a snap to setup and start using. Kibana strives to be easy to get started with, while also being flexible and powerful, just like Elastic

16 lines (14 loc) 518 B
var _ = require('lodash'); module.exports = function (server) { server.route({ method: 'GET', path: '/api/timelion/functions', handler: function (request, reply) { var functionArray = _.map(server.plugins.timelion.functions, function (val, key) { // TODO: This won't work on frozen objects, it should be removed when everything is converted to datasources and chainables return _.extend({}, val, {name: key}); }); reply(_.sortBy(functionArray, 'name')); } }); };