rename getService to getServiceStatus
This commit is contained in:
@@ -26,7 +26,7 @@ function getAll(req, res, next) {
|
||||
function get(req, res, next) {
|
||||
assert.strictEqual(typeof req.params.service, 'string');
|
||||
|
||||
services.getService(req.params.service, function (error, result) {
|
||||
services.getServiceStatus(req.params.service, function (error, result) {
|
||||
if (error) return next(BoxError.toHttpError(error));
|
||||
|
||||
next(new HttpSuccess(200, { service: result }));
|
||||
|
||||
+2
-2
@@ -2,7 +2,7 @@
|
||||
|
||||
exports = module.exports = {
|
||||
getServiceIds,
|
||||
getService,
|
||||
getServiceStatus,
|
||||
getServiceConfig,
|
||||
configureService,
|
||||
getServiceLogs,
|
||||
@@ -385,7 +385,7 @@ function getServiceConfig(id, callback) {
|
||||
});
|
||||
}
|
||||
|
||||
function getService(id, callback) {
|
||||
function getServiceStatus(id, callback) {
|
||||
assert.strictEqual(typeof id, 'string');
|
||||
assert.strictEqual(typeof callback, 'function');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user