nili 9 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
*/
@WebFilter(filterName = "ContextFilter", urlPatterns = {"/api/game/auth"})
@WebFilter(filterName = "ContextFilter", urlPatterns = {"/api/game/*"})
public class LoginFilter implements Filter {
@ -55,6 +55,9 @@ public class LoginFilter implements Filter {
pass = true;
}
}
if (path.startsWith("/api/game/matrix/")) {
pass = true;
}
if (pass) {
RequestContext.init(httpRequest, (HttpServletResponse) response, userId);
chain.doFilter(request, response);

Loading…
Cancel
Save