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

fix: fork api added to security config

刘一也 4 éve
szülő
commit
be5a4ff04b

+ 2 - 0
web/src/main/java/cn/seecoder/web/infrastructure/config/WebSecurityConfig.java

@@ -55,6 +55,8 @@ public class WebSecurityConfig extends WebSecurityConfigurerAdapter {
                 .addFilterBefore(filter, UsernamePasswordAuthenticationFilter.class)
 
                 .authorizeRequests()
+                // Fork Controller
+                .antMatchers(POST, "/fork").authenticated()
                 // Scheduler Controller
                 .antMatchers("/scheduler/**").hasAnyRole(SEEC_ROLE)
                 // Devmanage Controller