|
|
@ -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); |
|
|
|