From 2629b3db22f27b968a19f0699969de223b9cc792 Mon Sep 17 00:00:00 2001 From: Joffrey Bion Date: Fri, 22 May 2020 20:50:03 +0200 Subject: Use shared constant for ws endpoint --- .../kotlin/org/luxons/sevenwonders/server/config/WebSocketConfig.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'sw-server') 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) : -- cgit