Skip to content

Commit

Permalink
Update SPAWebFilter.java
Browse files Browse the repository at this point in the history
  • Loading branch information
SentryMan committed Aug 23, 2021
1 parent ef51525 commit d3fbf2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/mangasite/filters/SPAWebFilter.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public class SPAWebFilter implements WebFilter {
@Override
public Mono<Void> filter(ServerWebExchange exchange, WebFilterChain chain) {
final var path = exchange.getRequest().getURI().getPath();
if (!path.startsWith("/api") && path.matches("[^\\\\.]*") || path.startsWith("/manga"))
if (path.startsWith("/manga") || !path.startsWith("/api") && path.matches("[^\\\\.]*"))
return chain.filter(
exchange
.mutate()
Expand Down

0 comments on commit d3fbf2e

Please sign in to comment.