From e211caec2f976ddaeb8b86ee1e7fd2691e834ccd Mon Sep 17 00:00:00 2001 From: Denis Kazantsev Date: Fri, 8 Apr 2022 17:39:53 +0300 Subject: [PATCH] fixed controller --- .../touchin/server/info/controllers/ServerInfoController.kt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/server-info-spring-web/src/main/kotlin/ru/touchin/server/info/controllers/ServerInfoController.kt b/server-info-spring-web/src/main/kotlin/ru/touchin/server/info/controllers/ServerInfoController.kt index 3c83e21..18f9b6b 100644 --- a/server-info-spring-web/src/main/kotlin/ru/touchin/server/info/controllers/ServerInfoController.kt +++ b/server-info-spring-web/src/main/kotlin/ru/touchin/server/info/controllers/ServerInfoController.kt @@ -2,14 +2,16 @@ package ru.touchin.server.info.controllers import org.springframework.beans.factory.annotation.Autowired import org.springframework.web.bind.annotation.GetMapping +import org.springframework.web.bind.annotation.RequestMapping import org.springframework.web.bind.annotation.RestController import ru.touchin.server.info.services.ServerInfoService -@RestController("/info") +@RestController +@RequestMapping("/info") class ServerInfoController { @Autowired - private lateinit var serverInfoServices: List + private lateinit var serverInfoServices: List //TODO(Move to constructor) @GetMapping fun getServerInfo(): List> {