etherpad-lite/available_plugins/pluginomatic_fintest/otherpart.js

17 lines
463 B
JavaScript
Raw Normal View History

exports.somehook = function (hook_name, args, cb) {
return cb(["otherpart:somehook was here"]);
}
exports.morehook = function (hook_name, args, cb) {
return cb(["otherpart:morehook was here"]);
}
exports.expressServer = function (hook_name, args, cb) {
2012-02-26 00:45:06 +01:00
test = ep_client_require("/plugins/pluginomatic_fintest/test.js");
console.log("FOOO:", test.foo);
args.app.get('/otherpart', function(req, res) {
res.send("<em>Abra cadabra</em>");
});
}