summaryrefslogtreecommitdiff
path: root/sw-server/src
diff options
context:
space:
mode:
authorJoffrey Bion <joffrey.bion@booking.com>2020-05-22 20:50:03 +0200
committerJoffrey Bion <joffrey.bion@booking.com>2020-05-22 20:50:03 +0200
commit2629b3db22f27b968a19f0699969de223b9cc792 (patch)
tree78782dd05aa856a2417e41b242a9666468e12efa /sw-server/src
parentAdd debug statements (diff)
downloadseven-wonders-2629b3db22f27b968a19f0699969de223b9cc792.tar.gz
seven-wonders-2629b3db22f27b968a19f0699969de223b9cc792.tar.bz2
seven-wonders-2629b3db22f27b968a19f0699969de223b9cc792.zip
Use shared constant for ws endpoint
Diffstat (limited to 'sw-server/src')
-rw-r--r--sw-server/src/main/kotlin/org/luxons/sevenwonders/server/config/WebSocketConfig.kt3
1 files changed, 1 insertions, 2 deletions
diff --git a/sw-server/src/main/kotlin/org/luxons/sevenwonders/server/config/WebSocketConfig.kt b/sw-server/src/main/kotlin/org/luxons/sevenwonders/server/config/WebSocketConfig.kt
index 8bff83da..f68cddef 100644
--- a/sw-server/src/main/kotlin/org/luxons/sevenwonders/server/config/WebSocketConfig.kt
+++ b/sw-server/src/main/kotlin/org/luxons/sevenwonders/server/config/WebSocketConfig.kt
@@ -1,5 +1,6 @@
package org.luxons.sevenwonders.server.config
+import org.luxons.sevenwonders.model.api.SEVEN_WONDERS_WS_ENDPOINT
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.context.annotation.Bean
import org.springframework.context.annotation.Configuration
@@ -10,8 +11,6 @@ import org.springframework.web.socket.config.annotation.StompEndpointRegistry
import org.springframework.web.socket.config.annotation.WebSocketMessageBrokerConfigurer
import org.springframework.web.socket.server.support.DefaultHandshakeHandler
-const val SEVEN_WONDERS_WS_ENDPOINT = "/seven-wonders-websocket"
-
@Configuration
@EnableWebSocketMessageBroker
class WebSocketConfig @Autowired constructor(private val topicSubscriptionInterceptor: TopicSubscriptionInterceptor) :
bgstack15