Skip to content

Commit

Permalink
Actual working example
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian Johansen committed Jan 15, 2012
1 parent e9891be commit ea298ed
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/buster-resources.html.erb
Expand Up @@ -41,19 +41,19 @@ http.createServer(function (req, res) {
if (middleware.respond(req, res)) { return; }
res.writeHead(404);
res.end();
}).listen(8000);
}).listen(9988);

// Test it
http.request({
host: "localhost",
port: 8000,
port: 9988,
path: "/resources/buster.js"
}, function (res) {
res.setEncoding("utf8");
res.on("data", function (chunk) {
console.log(chunk);
});
});</code></pre>
}).end();</code></pre>
<h3 id="<%= id "resource-middleware-create" %>"><code>var middleware = resourceMiddleware.create(contextPath)</code></h3>
<p>
Create a new instance to serve resource sets. The middleware will only
Expand Down

0 comments on commit ea298ed

Please sign in to comment.