faq
v0.0.1
Published
a faq middleware for express.
Downloads
31
Readme
faq
faq middleware for express
Install
$ npm install faq
API
var faq = require('faq')
faq(options)
Using this middleware to handle load balance server's faq monitor.
Options
Faq accepts these properties in the options object.
uri
Provide faq URI. Default URI is /faq
.
body
Provide faq response object. Default response is ok
.
Examples
Simple example
Basic example of adding this middleware.
var app = require("express")();
var faq = require("faq");
app.use(faq());
Custom URI and Response
var app = require("express")();
var faq = require("faq");
var body = {
content: "hello faq"
}
var faqOption = {
uri: "/new-faq",
body: body
}
app.use(faq(faqOption));
License
[MIT]