Commit 72689695 authored by Evgeniy Zaitsev's avatar Evgeniy Zaitsev
Browse files

v1.0.3

parent 37604986
{
"name": "service-sdk",
"version": "1.0.2",
"version": "1.0.3",
"private": true,
"description": "Service SDK for LViS",
"keywords": [],
......
'use strict';
function* get() {
this.body = 'Ok';
let body = {
mysql: this.db.state,
};
if (this.config.healthCallback) {
const serviceHelth = yield this.config.healthCallback();
body = Object.assign({}, serviceHelth, body);
}
this.body = body;
}
module.exports = {get: get};
......@@ -16,7 +16,7 @@ const project = require('./project');
const analytics = require('./analytics');
router
.post('/health', health.get)
.get('/health', health.get)
.post('/lvis', checkSignature, lvis.post)
.post('/lvis/:instanceId/project', checkSignature, checkInstanceId, project.post)
.put(
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment