Commit 8bcf2989 authored by project's avatar project

--no commit message

--no commit message
parent c2ab70f8
...@@ -2,7 +2,7 @@ var express = require('express'); ...@@ -2,7 +2,7 @@ var express = require('express');
var router = express.Router(); var router = express.Router();
router.use('/object',require('./service-object')); router.use('/object',require('./service-object'));
//router.use('/storage',require('./service-storage')); router.use('/storage',require('./service-storage'));
module.exports = router; module.exports = router;
...@@ -7,9 +7,10 @@ var fs = require('fs'); ...@@ -7,9 +7,10 @@ var fs = require('fs');
var async = require('async'); var async = require('async');
var cfg = ctx.config; var cfg = ctx.config;
var storage_cfg = cfg.storage;
var response = ctx.getlib('lib/ws/response'); var response = ctx.getlib('lib/ws/response');
var request = ctx.getlib('lib/ws/request'); var request = ctx.getlib('lib/ws/request');
var BinStream = ctx.getlib('lib/storage/binarystream_v1_0'); var BinStream = ctx.getlib('lib/storage/binarystream_v1_1');
var ObjId = ctx.getlib('lib/storage/objid'); var ObjId = ctx.getlib('lib/storage/objid');
router.get('/:id/stats',function (req, res) { router.get('/:id/stats',function (req, res) {
...@@ -22,7 +23,7 @@ router.get('/:id/stats',function (req, res) { ...@@ -22,7 +23,7 @@ router.get('/:id/stats',function (req, res) {
} }
var storage_path = sid.split('.').join('/'); var storage_path = sid.split('.').join('/');
var bss_full_path = cfg.repository.path + "/" + storage_path + ".bss"; var bss_full_path = storage_cfg.repository + "/" + storage_path + ".bss";
fs.exists(bss_full_path,function(exists){ fs.exists(bss_full_path,function(exists){
...@@ -59,7 +60,7 @@ router.get('/:id/objects',function (req, res) { ...@@ -59,7 +60,7 @@ router.get('/:id/objects',function (req, res) {
} }
var storage_path = sid.split('.').join('/'); var storage_path = sid.split('.').join('/');
var bss_full_path = cfg.repository.path + "/" + storage_path + ".bss"; var bss_full_path = storage_cfg.repository + "/" + storage_path + ".bss";
var from_seq = 1; var from_seq = 1;
var limit = 0; var limit = 0;
......
Markdown is supported
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