Skip to content

Commit

Permalink
Updating the readme with proxy usage
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Trevino committed Mar 18, 2015
1 parent 7470309 commit 16669f8
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,17 @@ var express = require('express'),
jefferson = require('express-jefferson'),
app = express(),
conf = {
proxies: [
{
name: 'Logger',
init (delegate) {
return (req, res, next) => {
console.log("invoking middleware function");
delegate(req, res, next);
}
}
}
],
routes: {
getBeerList: {
method: 'GET',
Expand Down

0 comments on commit 16669f8

Please sign in to comment.