mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-29 02:30:28 +00:00
feature(markdown) exports.operate -> module.exports
This commit is contained in:
parent
2cede5bf21
commit
78507986f2
2 changed files with 3 additions and 5 deletions
|
|
@ -107,7 +107,7 @@
|
|||
if (isFS)
|
||||
onFS(params, callback);
|
||||
else if (isMD)
|
||||
markdown.operate(p.name, p.request, function(error, data) {
|
||||
markdown(p.name, p.request, function(error, data) {
|
||||
callback(error, {notLog: true}, data);
|
||||
});
|
||||
else {
|
||||
|
|
|
|||
|
|
@ -16,9 +16,7 @@
|
|||
|
||||
marked = tryRequire('marked');
|
||||
|
||||
exports.operate = operate;
|
||||
|
||||
function operate(name, request, callback) {
|
||||
module.exports = function(name, request, callback) {
|
||||
var query,
|
||||
method = request.method;
|
||||
|
||||
|
|
@ -50,7 +48,7 @@
|
|||
});
|
||||
break;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
function parse(data, callback) {
|
||||
var md;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue