Skip to content

Commit

Permalink
chore: update readme changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
Alfonso Reyes committed Feb 8, 2020
1 parent b527a0b commit fc5557e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ Bellow are a list of changes, some might go undocumented
- 1.1.0 - Minor changes, nothing too important
- 1.2.0 - Added unit tests, refactored code
- 1.2.1 - Updated to work with the latest version of nest swagger module
- 1.2.2 - Fixed issue with URL on windows

## 📋 ToDo

Expand Down
6 changes: 3 additions & 3 deletions src/redoc-module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,10 @@ export class RedocModule {
// Normalize URL path to use
const finalPath = this.normalizePath(path);
// Add a slash to the end of the URL path to use in URL resolve function
const resolvedPath = (str: string): string =>
str.slice(-1) !== '/' ? str + '/' : str;
const resolvedPath =
finalPath.slice(-1) !== '/' ? finalPath + '/' : finalPath;
// Serve swagger spec in another URL appended to the normalized path
const swaggerDocUrl = resolve(resolvedPath(finalPath), 'swagger.json');
const swaggerDocUrl = resolve(resolvedPath, 'swagger.json');
const hbs = handlebars.create({
helpers: {
toJSON: function(object: any) {
Expand Down

0 comments on commit fc5557e

Please sign in to comment.