diff --git a/module-server/src/main/kotlin/de/twomartens/wahlrecht/configuration/FilterConfiguration.kt b/module-server/src/main/kotlin/de/twomartens/wahlrecht/configuration/FilterConfiguration.kt new file mode 100644 index 0000000..113c7a9 --- /dev/null +++ b/module-server/src/main/kotlin/de/twomartens/wahlrecht/configuration/FilterConfiguration.kt @@ -0,0 +1,13 @@ +package de.twomartens.wahlrecht.configuration + +import org.springframework.context.annotation.Bean +import org.springframework.context.annotation.Configuration +import org.springframework.web.filter.ForwardedHeaderFilter + +@Configuration +open class FilterConfiguration { + @Bean + open fun forwardedFilter(): ForwardedHeaderFilter { + return ForwardedHeaderFilter() + } +} \ No newline at end of file diff --git a/module-server/src/main/kotlin/de/twomartens/wahlrecht/configuration/InterceptorConfiguration.kt b/module-server/src/main/kotlin/de/twomartens/wahlrecht/configuration/InterceptorConfiguration.kt index b15aa1a..89da48f 100644 --- a/module-server/src/main/kotlin/de/twomartens/wahlrecht/configuration/InterceptorConfiguration.kt +++ b/module-server/src/main/kotlin/de/twomartens/wahlrecht/configuration/InterceptorConfiguration.kt @@ -8,13 +8,13 @@ import java.time.Clock @Configuration open class InterceptorConfiguration { - @Bean - open fun loggingInterceptorRest(clock: Clock): LoggingInterceptorRest { - return LoggingInterceptorRest(clock) - } + @Bean + open fun loggingInterceptorRest(clock: Clock): LoggingInterceptorRest { + return LoggingInterceptorRest(clock) + } - @Bean - open fun headerInterceptorRest(): HeaderInterceptorRest { - return HeaderInterceptorRest() - } + @Bean + open fun headerInterceptorRest(): HeaderInterceptorRest { + return HeaderInterceptorRest() + } } \ No newline at end of file