feature(cloudfunc) rm isJoinURL

This commit is contained in:
coderaiser 2014-08-12 10:14:59 -04:00
parent 44779f0bb1
commit 8693e19eae
2 changed files with 3 additions and 8 deletions

View file

@ -77,12 +77,6 @@ var Util;
return names;
};
this.isJoinURL = function(url) {
var ret = Util.isContainStrAtBegin(url, JOIN);
return ret;
};
this.formatMsg = function(msg, name, status) {
if (!status)
status = 'ok';

View file

@ -16,10 +16,11 @@
exec = Util.exec,
readFunc = exec.with(readPipe, req, res),
path = main.getPathName(req),
isJoin = CloudFunc.isJoinURL(path);
regExp = new RegExp('^/join'),
isJoin = path.match(regExp);
if (!isJoin) {
exec(callback);
callback();
} else {
names = CloudFunc.getJoinArray(path);