feature(markdown) exports.operate -> module.exports

This commit is contained in:
coderaiser 2014-09-15 08:39:33 -04:00
parent 2cede5bf21
commit 78507986f2
2 changed files with 3 additions and 5 deletions

View file

@ -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 {

View file

@ -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;