Browse Source

dashboard redirect

shjung 2 năm trước cách đây
mục cha
commit
ef6eebe8b0

+ 1 - 1
src/main/java/com/its/op/security/WebMvcConfig.java

@@ -24,7 +24,7 @@ public class WebMvcConfig implements WebMvcConfigurer {
 
         registry.addInterceptor(new ApiInterceptor())
                 .addPathPatterns("/api/**")                         // API Controller interceptors
-                .excludePathPatterns("/facility/**", "/wall/**", "/dash-board/**")    // 해당 경로는 인터셉터가 가로채지 않는다.
+                .excludePathPatterns("/facility/**", "/wall/**", "/dashboard/**")    // 해당 경로는 인터셉터가 가로채지 않는다.
                 ;
     }
 

+ 2 - 2
src/main/java/com/its/op/security/WebSecurityConfig.java

@@ -76,7 +76,7 @@ public class WebSecurityConfig extends WebSecurityConfigurerAdapter {
                     .antMatchers("/application/**", "/facility/**").permitAll()
                     .antMatchers("/application/wall/**", "/wall/**").permitAll()
                     .antMatchers("/application/facility/**", "/facility/**").permitAll()
-                    .antMatchers("/application/dash-board/**", "/dash-board/**").permitAll()
+                    .antMatchers("/application/dashboard/**", "/dashboard/**").permitAll()
                     .antMatchers("/application/login/**").permitAll()
                     .antMatchers("/api/auth/**").permitAll()
                     .anyRequest().authenticated()
@@ -153,7 +153,7 @@ public class WebSecurityConfig extends WebSecurityConfigurerAdapter {
                     .antMatchers("/application/**", "/facility/**").permitAll()
                     .antMatchers("/application/wall/**", "/wall/**").permitAll()
                     .antMatchers("/application/facility/**", "/facility/**").permitAll()
-                    .antMatchers("/application/dash-board/**", "/dash-board/**").permitAll()
+                    .antMatchers("/application/dashboard/**", "/dashboard/**").permitAll()
                     .antMatchers("/application/login/**").permitAll()
                     .antMatchers("/api/auth/**").permitAll()
                     .anyRequest().authenticated()