feature(package) restafary v1.2.0

This commit is contained in:
coderaiser 2015-04-07 04:15:08 -04:00
parent 3a8c71d363
commit 142daeb924
3 changed files with 5 additions and 4 deletions

View file

@ -89,7 +89,8 @@
authFunc,
config(),
restafary({
prefix: cloudfunc.apiURL + '/fs'
prefix : cloudfunc.apiURL + '/fs',
root : config('root') || '/'
}),
rest,
route,

View file

@ -158,12 +158,12 @@
p.name = DIR_HTML + name + '.html';
ponse.sendFile(p);
} else if (isFS) {
name = name.replace(CloudFunc.FS, '') || '/';
fullPath = name.replace(CloudFunc.FS, '') || '/';
fullPath = root(name);
mellow.read(fullPath, function(error, dir) {
if (dir)
dir.path = format.addSlashToEnd(name);
dir.path = format.addSlashToEnd(fullPath);
if (!error)
buildIndex(dir, function(error, data) {

View file

@ -53,7 +53,7 @@
"pipe-io": "~1.1.1",
"ponse": "~1.3.0",
"rendy": "~1.0.2",
"restafary": "~1.1.0",
"restafary": "~1.2.0",
"socket.io": "~1.3.5",
"tryrequire": "~1.1.5"
},