Skip to content

Commit

Permalink
Merge pull request #13 from richardo2016/feat/support_count
Browse files Browse the repository at this point in the history
Feat/support count
  • Loading branch information
xicilion authored May 12, 2018
2 parents 076c050 + 5f6f166 commit ce9b5a4
Show file tree
Hide file tree
Showing 13 changed files with 308 additions and 237 deletions.
5 changes: 3 additions & 2 deletions demo/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ var session = new Session(new util.LruCache(20000), {
timeout: 60 * 1000
});

var svr = new http.Server(8080, [
var { port } = require('./')
var svr = new http.Server(port, [
session.cookie_filter,
{
'/1.0/app': app,
Expand All @@ -42,4 +43,4 @@ var svr = new http.Server(8080, [
})
}
]);
svr.run(() => {});
svr.run(() => {});
2 changes: 2 additions & 0 deletions demo/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
exports.port = process.env.FIB_TEST_PORT || 8080
exports.serverBase = `http://127.0.0.1:${exports.port}`
Loading

0 comments on commit ce9b5a4

Please sign in to comment.