nili 8 months ago
parent
commit
f7a0a8cc18
  1. 5
      game-web/src/main/java/awesome/group/game/web/filter/LoginFilter.java

5
game-web/src/main/java/awesome/group/game/web/filter/LoginFilter.java

@ -18,7 +18,7 @@ import java.util.List;
/** /**
* @author nidaren * @author nidaren
*/ */
@WebFilter(filterName = "ContextFilter", urlPatterns = {"/api/game/auth"}) @WebFilter(filterName = "ContextFilter", urlPatterns = {"/api/game/*"})
public class LoginFilter implements Filter { public class LoginFilter implements Filter {
@ -55,6 +55,9 @@ public class LoginFilter implements Filter {
pass = true; pass = true;
} }
} }
if (path.startsWith("/api/game/matrix/")) {
pass = true;
}
if (pass) { if (pass) {
RequestContext.init(httpRequest, (HttpServletResponse) response, userId); RequestContext.init(httpRequest, (HttpServletResponse) response, userId);
chain.doFilter(request, response); chain.doFilter(request, response);

Loading…
Cancel
Save