Skip to content

Commit

Permalink
-
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeHitchens committed Aug 5, 2011
1 parent 6da4625 commit 0ffef93
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion README.md
Expand Up @@ -55,7 +55,8 @@ createServer(). That callback receives it's own callback which should be used t
send a message back to the client.

Any requests for paths that do not beging with "/api" are process as static file
requests and are handled by the node module "paperboy".
requests and are handled by the node module "paperboy". The static files are
expected to be rooted at a directory or symlink called "./docroot".



2 changes: 1 addition & 1 deletion index.js
Expand Up @@ -114,7 +114,7 @@ function messageInit(tx) {

// Static pages delivered using paperboy
boy = require("paperboy")
function www(req, res) {
function www(req, res, docroot) {
boy
.deliver("docroot", req, res)
.before(function() {
Expand Down

0 comments on commit 0ffef93

Please sign in to comment.