Removes breaking and unneeded config annotation
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed

This commit is contained in:
aarbit 2025-09-30 00:20:26 -05:00
parent 8a8a8f15b1
commit 2e4bbbd810

View File

@ -1,14 +1,20 @@
package net.halfbinary.tmnt.config
import org.springframework.context.annotation.Bean
import org.springframework.context.annotation.Configuration
import org.springframework.web.servlet.config.annotation.CorsRegistry
import org.springframework.web.servlet.config.annotation.EnableWebMvc
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer
@Configuration
@EnableWebMvc
class WebConfig : WebMvcConfigurer {
override fun addCorsMappings(registry: CorsRegistry) {
registry.addMapping("/**")
@Configuration(proxyBeanMethods = false)
class MyCorsConfiguration {
@Bean
fun corsConfigurer(): WebMvcConfigurer {
return object : WebMvcConfigurer {
override fun addCorsMappings(registry: CorsRegistry) {
registry.addMapping("/**")
}
}
}
}