mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-18 00:47:01 +00:00
refactor(rest) Fs
This commit is contained in:
parent
82de5d4ef2
commit
c7592c73eb
1 changed files with 10 additions and 9 deletions
|
|
@ -28,14 +28,6 @@
|
|||
CloudFunc = require(DIR_LIB + 'cloudfunc'),
|
||||
format = require(DIR_LIB + 'format'),
|
||||
|
||||
Fs = [
|
||||
'get',
|
||||
'put',
|
||||
'delete'
|
||||
].map(function(name) {
|
||||
return require(DIR + 'rest/fs/' + name);
|
||||
}),
|
||||
|
||||
markdown = require(DIR + 'rest/markdown'),
|
||||
|
||||
auth = require(DIR + 'auth'),
|
||||
|
|
@ -45,8 +37,17 @@
|
|||
ponse = require(DIR + 'ponse'),
|
||||
pipe = require(DIR + 'pipe'),
|
||||
|
||||
isWin32 = process.platform === 'win32';
|
||||
isWin32 = process.platform === 'win32',
|
||||
|
||||
Fs = {};
|
||||
|
||||
[
|
||||
'get',
|
||||
'put',
|
||||
'delete'
|
||||
].forEach(function(name) {
|
||||
Fs[name] = require(DIR + 'rest/fs/' + name);
|
||||
});
|
||||
|
||||
/**
|
||||
* rest interface
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue