fixed controller
This commit is contained in:
parent
a5aa1d6931
commit
e211caec2f
|
|
@ -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>> {
|
||||
|
|
|
|||
Loading…
Reference in New Issue