mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 10:45:47 +00:00
feature(package) restafary v1.2.0
This commit is contained in:
parent
3a8c71d363
commit
142daeb924
3 changed files with 5 additions and 4 deletions
|
|
@ -89,7 +89,8 @@
|
|||
authFunc,
|
||||
config(),
|
||||
restafary({
|
||||
prefix: cloudfunc.apiURL + '/fs'
|
||||
prefix : cloudfunc.apiURL + '/fs',
|
||||
root : config('root') || '/'
|
||||
}),
|
||||
rest,
|
||||
route,
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue