hasancode-api-docs 1.0.14 → 1.0.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -254,7 +254,7 @@ class ApiDoc {
254
254
  ? this.DOCS_PATH
255
255
  : `/${this.DOCS_PATH}`;
256
256
  const fullPath = (mountPath + docsPath).replace(/\/+$/, "");
257
- const baseTag = `<base href="${fullPath}">`;
257
+ const baseTag = `<base href="${fullPath}/">`;
258
258
  // Insert or replace base tag
259
259
  if (html.includes("<base ")) {
260
260
  html = html.replace(/<base[^>]*>/i, baseTag);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hasancode-api-docs",
3
- "version": "1.0.14",
3
+ "version": "1.0.15",
4
4
  "description": "A simple and easy to use API documentation generator for Express.js",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",