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));
|