summaryrefslogtreecommitdiff
path: root/sw-server/src/main/kotlin/org
diff options
context:
space:
mode:
authorjoffrey-bion <joffrey.bion@gmail.com>2020-10-31 13:48:49 +0100
committerjoffrey-bion <joffrey.bion@gmail.com>2020-10-31 15:10:31 +0100
commit6d966fe416c9ca49ef2bb0ad1f61cbb5566b1ecd (patch)
tree88af3427ee9005f191862114f47e607af61d450e /sw-server/src/main/kotlin/org
parentRemove unnecessary Jackstomp dependency (diff)
downloadseven-wonders-6d966fe416c9ca49ef2bb0ad1f61cbb5566b1ecd.tar.gz
seven-wonders-6d966fe416c9ca49ef2bb0ad1f61cbb5566b1ecd.tar.bz2
seven-wonders-6d966fe416c9ca49ef2bb0ad1f61cbb5566b1ecd.zip
Remove unnecessary Livedoc (Kotlin MPP makes it redundant)
Diffstat (limited to 'sw-server/src/main/kotlin/org')
-rw-r--r--sw-server/src/main/kotlin/org/luxons/sevenwonders/server/SevenWonders.kt2
-rw-r--r--sw-server/src/main/kotlin/org/luxons/sevenwonders/server/controllers/GameBrowserController.kt2
-rw-r--r--sw-server/src/main/kotlin/org/luxons/sevenwonders/server/controllers/GameController.kt2
-rw-r--r--sw-server/src/main/kotlin/org/luxons/sevenwonders/server/controllers/HomeController.kt2
-rw-r--r--sw-server/src/main/kotlin/org/luxons/sevenwonders/server/controllers/LobbyController.kt2
5 files changed, 0 insertions, 10 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 51710115..8496fafd 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,11 +1,9 @@
package org.luxons.sevenwonders.server
-import org.hildan.livedoc.spring.boot.starter.EnableJSONDoc
import org.springframework.boot.autoconfigure.SpringBootApplication
import org.springframework.boot.runApplication
@SpringBootApplication
-@EnableJSONDoc
class SevenWonders
fun main(args: Array<String>) {
diff --git a/sw-server/src/main/kotlin/org/luxons/sevenwonders/server/controllers/GameBrowserController.kt b/sw-server/src/main/kotlin/org/luxons/sevenwonders/server/controllers/GameBrowserController.kt
index 3236a6c9..b63f6756 100644
--- a/sw-server/src/main/kotlin/org/luxons/sevenwonders/server/controllers/GameBrowserController.kt
+++ b/sw-server/src/main/kotlin/org/luxons/sevenwonders/server/controllers/GameBrowserController.kt
@@ -1,6 +1,5 @@
package org.luxons.sevenwonders.server.controllers
-import org.hildan.livedoc.core.annotations.Api
import org.luxons.sevenwonders.model.api.LobbyDTO
import org.luxons.sevenwonders.model.api.actions.CreateGameAction
import org.luxons.sevenwonders.model.api.actions.JoinGameAction
@@ -21,7 +20,6 @@ import java.security.Principal
/**
* This is the place where the player looks for a game.
*/
-@Api(name = "GameBrowser")
@Controller
class GameBrowserController(
private val lobbyController: LobbyController,
diff --git a/sw-server/src/main/kotlin/org/luxons/sevenwonders/server/controllers/GameController.kt b/sw-server/src/main/kotlin/org/luxons/sevenwonders/server/controllers/GameController.kt
index f3d8aaef..0309cb27 100644
--- a/sw-server/src/main/kotlin/org/luxons/sevenwonders/server/controllers/GameController.kt
+++ b/sw-server/src/main/kotlin/org/luxons/sevenwonders/server/controllers/GameController.kt
@@ -1,6 +1,5 @@
package org.luxons.sevenwonders.server.controllers
-import org.hildan.livedoc.core.annotations.Api
import org.luxons.sevenwonders.engine.Game
import org.luxons.sevenwonders.model.api.actions.PrepareMoveAction
import org.luxons.sevenwonders.model.cards.PreparedCard
@@ -16,7 +15,6 @@ import java.security.Principal
/**
* This API is for in-game events management.
*/
-@Api(name = "Game")
@Controller
class GameController(
private val template: SimpMessagingTemplate,
diff --git a/sw-server/src/main/kotlin/org/luxons/sevenwonders/server/controllers/HomeController.kt b/sw-server/src/main/kotlin/org/luxons/sevenwonders/server/controllers/HomeController.kt
index c34756a8..5cfedb17 100644
--- a/sw-server/src/main/kotlin/org/luxons/sevenwonders/server/controllers/HomeController.kt
+++ b/sw-server/src/main/kotlin/org/luxons/sevenwonders/server/controllers/HomeController.kt
@@ -1,6 +1,5 @@
package org.luxons.sevenwonders.server.controllers
-import org.hildan.livedoc.core.annotations.Api
import org.luxons.sevenwonders.model.api.ConnectedPlayer
import org.luxons.sevenwonders.model.api.PlayerDTO
import org.luxons.sevenwonders.model.api.actions.ChooseNameAction
@@ -15,7 +14,6 @@ import java.security.Principal
/**
* Handles actions in the homepage of the game.
*/
-@Api(name = "Home")
@Controller
class HomeController(
private val playerRepository: PlayerRepository,
diff --git a/sw-server/src/main/kotlin/org/luxons/sevenwonders/server/controllers/LobbyController.kt b/sw-server/src/main/kotlin/org/luxons/sevenwonders/server/controllers/LobbyController.kt
index 64e75a8f..fccb9b5b 100644
--- a/sw-server/src/main/kotlin/org/luxons/sevenwonders/server/controllers/LobbyController.kt
+++ b/sw-server/src/main/kotlin/org/luxons/sevenwonders/server/controllers/LobbyController.kt
@@ -2,7 +2,6 @@ package org.luxons.sevenwonders.server.controllers
import kotlinx.coroutines.GlobalScope
import kotlinx.coroutines.launch
-import org.hildan.livedoc.core.annotations.Api
import org.luxons.sevenwonders.bot.SevenWondersBot
import org.luxons.sevenwonders.model.api.actions.AddBotAction
import org.luxons.sevenwonders.model.api.actions.ReassignWondersAction
@@ -25,7 +24,6 @@ import java.security.Principal
/**
* Handles actions in the game's lobby. The lobby is the place where players gather before a game.
*/
-@Api(name = "Lobby")
@Controller
class LobbyController(
private val lobbyRepository: LobbyRepository,
bgstack15