From 42ab2c5328990780b05d6f3f522cd7accc771a88 Mon Sep 17 00:00:00 2001 From: euniceamoni Date: Tue, 20 Oct 2026 07:18:08 +0000 Subject: [PATCH] fix(#54): gate Swagger UI behind non-production, pin version, add SRI MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Conditionally register GET /docs only when NODE_ENV !== 'production'. /openapi.json and /docs/json remain available in all environments. - Pin swagger-ui-dist to 5.34.0 (exact semver, no floating major). - Add integrity (sha384) and crossorigin='anonymous' attributes to both the and + `); -}); + }); +} -export default router; \ No newline at end of file +export default router;