1
0
mirror of https://github.com/Stirling-Tools/Stirling-PDF.git synced 2024-11-04 15:00:14 +01:00
Stirling-PDF/src/main/java/stirling/software/SPDF/utils/RequestUriUtils.java

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

17 lines
459 B
Java
Raw Normal View History

2023-12-29 21:48:21 +01:00
package stirling.software.SPDF.utils;
public class RequestUriUtils {
public static boolean isStaticResource(String requestURI) {
return requestURI.startsWith("/css/")
|| requestURI.startsWith("/js/")
|| requestURI.startsWith("/images/")
|| requestURI.startsWith("/public/")
|| requestURI.startsWith("/pdfjs/")
2023-12-30 19:56:07 +01:00
|| requestURI.endsWith(".svg")
|| requestURI.startsWith("/api/v1/info/status");
2023-12-29 21:48:21 +01:00
2023-12-30 20:11:27 +01:00
}
2023-12-29 21:48:21 +01:00
}