We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Something along the lines of:
var jstp = require("jstp"); var Module = { routes: [ { { method: "GET", resource: ["article", ":name"] }, Module.getArticle, Module } ], getArticle: function (message) { console.log(message.params.name); } } jstp.use(Module);
Also, default modules should be includable in many ways:
default
var jstp = require("jstp"); jstp.default();
extra paranoid
in this example jstp is not configured to be gateway because the module is not loaded
var jstp = require("jstp"); jstp.use(jstp.module.guard); // not pictured: jstp.use(jstp.module.gateway);
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Something along the lines of:
Also, default modules should be includable in many ways:
default
extra paranoid
The text was updated successfully, but these errors were encountered: