From 1f2b52ba5af251d5002346b8fd493f2a1373d186 Mon Sep 17 00:00:00 2001 From: Egil Moeller Date: Fri, 24 Feb 2012 20:29:14 +0100 Subject: [PATCH] Builtin 'plugin' now works --- node/test.js | 5 +++++ pluginomatic.json | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 node/test.js diff --git a/node/test.js b/node/test.js new file mode 100644 index 00000000..5db54720 --- /dev/null +++ b/node/test.js @@ -0,0 +1,5 @@ +exports.expressServer = function (hook_name, args, cb) { + args.app.get('/testxx', function(req, res) { + res.send("Testing testing"); + }); +} diff --git a/pluginomatic.json b/pluginomatic.json index 1f8fe189..ca9ee416 100644 --- a/pluginomatic.json +++ b/pluginomatic.json @@ -1,6 +1,8 @@ { "parts": [{ "name": "__builtin__", - "hooks": {} + "hooks": { + "expressServer": "../test:expressServer" + } }] }