Skip to content

Commit

Permalink
fix serving static files in public
Browse files Browse the repository at this point in the history
  • Loading branch information
timaschew committed Apr 9, 2015
1 parent 2aa25d2 commit 53538a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ app.use(require('koa-json')({
pretty: false,
param: 'pretty',
}));
app.use(require('koa-static')(join(__dirname, '..', 'public'), {
app.use(require('koa-static')('public'), {
defer: true,
}));
});

// GET the entire .json file
app.use(function* (next) {
Expand Down

0 comments on commit 53538a3

Please sign in to comment.