Skip to content

Commit

Permalink
feat(routes): fix for markdown path resolving when used as a library (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
missinglink authored Nov 7, 2022
1 parent c151f6c commit d1163de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions routes/v1.js
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit d1163de

Please sign in to comment.