hasancode-api-docs 1.0.11 → 1.0.12

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.
@@ -205,7 +205,7 @@ class ApiDoc {
205
205
  // 1. Handle trailing slash redirect for the root path
206
206
  // This is crucial for relative asset resolution
207
207
  router.get(this.DOCS_PATH, (req, res) => {
208
- res.redirect(301, req.originalUrl + "/");
208
+ res.redirect(301, req.originalUrl);
209
209
  });
210
210
  // 2. Serve config.json
211
211
  router.get(`${this.DOCS_PATH}/config.json`, this.serveConfig.bind(this));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hasancode-api-docs",
3
- "version": "1.0.11",
3
+ "version": "1.0.12",
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",