Skip to content

Commit

Permalink
Use an absolute path when serving the API documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
danielgtaylor committed Nov 24, 2013
1 parent 4113dcb commit 7730270
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server.coffee
Expand Up @@ -186,7 +186,7 @@ app.get '/account/authorize/google', passport.authenticate('google', scope: 'ope
app.get '/account/authorize/google/callback', loginController.login('google')

app.get '/', (req, res) ->
res.status(200).sendfile 'public/apidoc.html'
res.status(200).sendfile "#{path.dirname(__dirname)}/public/apidoc.html"

# Start the server
exports.start = (listen, done) ->
Expand Down

0 comments on commit 7730270

Please sign in to comment.