Skip to content
This repository has been archived by the owner on Jan 28, 2024. It is now read-only.

Commit

Permalink
fix(routes/docs): stop all redoc files from being served
Browse files Browse the repository at this point in the history
  • Loading branch information
Fdawgs committed Jun 2, 2023
1 parent cf6d41a commit 20ee86e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/routes/docs/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ async function route(server) {
"bundles"
),
allowedPath: (pathName) =>
pathName.match(/\/redoc\.standalone\.js(?:.map|)/),
pathName.match(/\/redoc\.standalone\.js(?:.map|)/) !== null,
decorateReply: false,
maxAge: "1 day",
prefix: "/redoc/",
Expand Down

0 comments on commit 20ee86e

Please sign in to comment.