summaryrefslogtreecommitdiff
path: root/sw-server/src
diff options
context:
space:
mode:
Diffstat (limited to 'sw-server/src')
-rw-r--r--sw-server/src/main/kotlin/org/luxons/sevenwonders/server/SevenWonders.kt11
1 files changed, 10 insertions, 1 deletions
diff --git a/sw-server/src/main/kotlin/org/luxons/sevenwonders/server/SevenWonders.kt b/sw-server/src/main/kotlin/org/luxons/sevenwonders/server/SevenWonders.kt
index 8496fafd..2485a28f 100644
--- a/sw-server/src/main/kotlin/org/luxons/sevenwonders/server/SevenWonders.kt
+++ b/sw-server/src/main/kotlin/org/luxons/sevenwonders/server/SevenWonders.kt
@@ -1,10 +1,19 @@
package org.luxons.sevenwonders.server
import org.springframework.boot.autoconfigure.SpringBootApplication
+import org.springframework.boot.autoconfigure.http.HttpMessageConverters
import org.springframework.boot.runApplication
+import org.springframework.context.annotation.Bean
+import org.springframework.http.converter.json.KotlinSerializationJsonHttpMessageConverter
@SpringBootApplication
-class SevenWonders
+class SevenWonders {
+
+ @Bean
+ fun additionalConverters(): HttpMessageConverters? {
+ return HttpMessageConverters(KotlinSerializationJsonHttpMessageConverter())
+ }
+}
fun main(args: Array<String>) {
runApplication<SevenWonders>(*args)
bgstack15