From 750748834e9fbfc453b9dd0396ee542e3e9d3c08 Mon Sep 17 00:00:00 2001 From: TJ Holowaychuk Date: Tue, 27 Aug 2013 19:57:16 -0700 Subject: [PATCH] refactor examples --- examples/route.js | 2 +- examples/simple.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/route.js b/examples/route.js index aed2cd9..acf806e 100644 --- a/examples/route.js +++ b/examples/route.js @@ -65,4 +65,4 @@ function route(method, path, fn) { } } -http.createServer(app.callback()).listen(3000); +app.listen(3000); diff --git a/examples/simple.js b/examples/simple.js index 73049dc..ba01bd3 100644 --- a/examples/simple.js +++ b/examples/simple.js @@ -56,4 +56,4 @@ app.use(function(next){ } }); -http.createServer(app.callback()).listen(3000); +app.listen(3000);