plugin-express

plugin-express ==============

npm install plugin-express
1 downloads in the last week
22 downloads in the last month

bootstrap.js


var plugin = require("plugin");

plugin().
params({
    http: {
        port: 80
    },
    publicDir: __dirname + "/public"
})
require("plugin-express").
require(__dirname + "/plugins/myPlugin.js").
load();

myPlugin.js

exports.require = ["plugin-express"];
exports.plugin = function(server) {
    server.get("hello/world", function(req, res) {
        res.send("hello world!");
    })
};
npm loves you