Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | 'use strict'; var http = require("./http.js"); module.exports = function (config) { return { save: function (data) { if (typeof data === "string") { var id = data; data = arguments[1]; data.id = id; } return http.post(config.domainName + "/botmon/api/bot/save", data); }, get: function (id) { return http.get(config.domainName + "/botmon/api/bot/" + id); }, list: function () { return http.get(config.domainName + "/botmon/api/bot"); } } }; |