fix: remove swagger path cache

This commit is contained in:
Tristan Yang
2022-11-22 16:32:28 +08:00
parent f19e030729
commit 9b3dc2f740
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -33,7 +33,7 @@ registerRoute(
return false;
} // If this is a URL that starts with /_, skip.
if (url.pathname.startsWith("/_")) {
if (url.pathname.startsWith("/_") || url.pathname.startsWith("/api/swagger")) {
return false;
} // If this looks like a URL for a resource, because it contains // a file extension, skip.