Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
N
node-bigstream
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
3
Merge Requests
3
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
bs
node-bigstream
Commits
1fb3f873
Commit
1fb3f873
authored
Jun 02, 2017
by
project
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
--no commit message
--no commit message
parent
56224bd3
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
2 deletions
+13
-2
service-object.js
storage-service/ws/v0.1/service-object.js
+13
-2
No files found.
storage-service/ws/v0.1/service-object.js
View file @
1fb3f873
...
@@ -98,10 +98,16 @@ function get_object(reqHelper,respHelper,prm)
...
@@ -98,10 +98,16 @@ function get_object(reqHelper,respHelper,prm)
function
output
(
resp
,
obj
,
opt
)
function
output
(
resp
,
obj
,
opt
)
{
{
if
(
opt
.
filed
==
'data'
)
{
data_out
(
resp
,
obj
,
opt
);
}
else
{
obj_out
(
resp
,
obj
,
opt
);
obj_out
(
resp
,
obj
,
opt
);
}
}
}
function
obj_out
(
resp
,
obj
,
opt
){
function
obj_out
(
resp
,
obj
,
opt
)
{
var
ret
=
{
"_id"
:
(
new
ObjId
(
obj
.
header
.
ID
)).
toString
(),
var
ret
=
{
"_id"
:
(
new
ObjId
(
obj
.
header
.
ID
)).
toString
(),
"meta"
:
obj
.
meta
,
"meta"
:
obj
.
meta
,
"data"
:
obj
.
data
"data"
:
obj
.
data
...
@@ -109,6 +115,11 @@ function obj_out(resp,obj,opt){
...
@@ -109,6 +115,11 @@ function obj_out(resp,obj,opt){
resp
.
responseOK
(
ret
);
resp
.
responseOK
(
ret
);
}
}
function
data_out
(
resp
,
obj
,
opt
)
{
var
objType
=
obj
.
header
;
resp
.
responseOK
(
objType
);
}
module
.
exports
=
router
;
module
.
exports
=
router
;
Write
Preview
Markdown
is supported
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