diff --git a/routes/v1.js b/routes/v1.js index ff6b2f5ed..4fceacabd 100644 --- a/routes/v1.js +++ b/routes/v1.js @@ -206,10 +206,10 @@ function addRoutes(app, peliasConfig) { var routers = { index: createRouter([ - controllers.markdownToHtml(peliasConfig.api, './public/apiDoc.md') + controllers.markdownToHtml(peliasConfig.api, path.join(__dirname, '../public/apiDoc.md')) ]), attribution: createRouter([ - controllers.markdownToHtml(peliasConfig.api, './public/attribution.md') + controllers.markdownToHtml(peliasConfig.api, path.join(__dirname, '../public/attribution.md')) ]), search: createRouter([ sanitizers.search.middleware(peliasConfig.api),