Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
publics
service-sdk-releases
Commits
72689695
Commit
72689695
authored
May 11, 2017
by
Evgeniy Zaitsev
Browse files
v1.0.3
parent
37604986
Changes
3
Show whitespace changes
Inline
Side-by-side
package.json
View file @
72689695
{
"name"
:
"service-sdk"
,
"version"
:
"1.0.
2
"
,
"version"
:
"1.0.
3
"
,
"private"
:
true
,
"description"
:
"Service SDK for LViS"
,
"keywords"
:
[],
...
...
router/health.js
View file @
72689695
'
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
};
router/index.js
View file @
72689695
...
...
@@ -16,7 +16,7 @@ const project = require('./project');
const
analytics
=
require
(
'
./analytics
'
);
router
.
pos
t
(
'
/health
'
,
health
.
get
)
.
ge
t
(
'
/health
'
,
health
.
get
)
.
post
(
'
/lvis
'
,
checkSignature
,
lvis
.
post
)
.
post
(
'
/lvis/:instanceId/project
'
,
checkSignature
,
checkInstanceId
,
project
.
post
)
.
put
(
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment