fixed controller

This commit is contained in:
Denis Kazantsev 2022-04-08 17:39:53 +03:00
parent a5aa1d6931
commit e211caec2f
1 changed files with 4 additions and 2 deletions

View File

@ -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<ServerInfoService>
private lateinit var serverInfoServices: List<ServerInfoService> //TODO(Move to constructor)
@GetMapping
fun getServerInfo(): List<Map<String, String>> {