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
1f7ac6ba
Commit
1f7ac6ba
authored
May 12, 2017
by
Evgeniy Zaitsev
Browse files
v1.0.4
parent
72689695
Changes
2
Show whitespace changes
Inline
Side-by-side
package.json
View file @
1f7ac6ba
{
"name"
:
"service-sdk"
,
"version"
:
"1.0.
3
"
,
"version"
:
"1.0.
4
"
,
"private"
:
true
,
"description"
:
"Service SDK for LViS"
,
"keywords"
:
[],
...
...
router/assets.js
View file @
1f7ac6ba
...
...
@@ -2,9 +2,12 @@
function
*
get
()
{
const
getAssets
=
this
.
config
.
assetsCallback
;
const
assets
=
{
endpoint
:
this
.
config
.
wsEndpoint
,
};
const
assets
=
[
{
name
:
'
endpoint
'
,
data
:
this
.
config
.
wsEndpoint
,
},
];
if
(
getAssets
)
{
const
customAssets
=
yield
getAssets
(
...
...
@@ -13,7 +16,11 @@ function* get() {
this
.
state
.
eventId
);
Object
.
assign
({},
customAssets
,
assets
);
if
(
Array
.
isArray
(
customAssets
))
{
assets
.
push
(...
customAssets
);
}
else
{
this
.
logger
.
log
(
__filename
,
'
assets must be an array
'
);
}
}
this
.
body
=
assets
;
...
...
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