Forráskód Böngészése

用户端发现页面接口免登录

wangzhijun 1 hónapja
szülő
commit
e2bf2adbe6

+ 1 - 1
nightFragrance-framework/src/main/java/com/ylx/framework/config/SecurityConfig.java

@@ -120,7 +120,7 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter {
                         "/technician/technician/getTechnician", "/technician/technician/getTechnicianInfo", "/technician/technician/getTechnicianList",
                         "/technician/technician/apply", "/technician/technician/resetPassword",
                         "/customer/banner/page", "/customer/service/category/**", "/technician/technician/profile",
-                        "/customer/city/**","/home/hot/recommend","/home/search/**").permitAll()
+                        "/customer/city/**","/home/hot/recommend","/home/search/**","/discover/moment/**").permitAll()
                 // 静态资源,可匿名访问
                 .antMatchers(HttpMethod.GET, "/", "/*.txt", "/*.html", "/**/*.html", "/**/*.css", "/**/*.js", "/profile/**").permitAll()
                 .antMatchers("/swagger-ui.html", "/swagger-resources/**", "/webjars/**", "/*/api-docs", "/druid/**").permitAll()