Added controller

This commit is contained in:
Denis Kazantsev 2022-04-08 00:10:53 +03:00
parent 9cfe8ee7ba
commit 85e5eecfbc
3 changed files with 21 additions and 3 deletions

View File

@ -0,0 +1,14 @@
package ru.touchin.server.info.controllers
import org.springframework.web.bind.annotation.GetMapping
import org.springframework.web.bind.annotation.RestController
@RestController("/info")
class ServerInfoController {
@GetMapping
fun getServerInfo() {
}
}

View File

@ -2,8 +2,12 @@ package ru.touchin.server.info.services
import org.springframework.http.server.ServerHttpResponse
interface ServerInfoService {
abstract class ServerInfoService {
fun addHeader(response: ServerHttpResponse): ServerHttpResponse
abstract fun addHeader(response: ServerHttpResponse): ServerHttpResponse
fun getServerInfo() {
}
}

View File

@ -7,7 +7,7 @@ import ru.touchin.server.info.properties.ServerInfoProperties
@Service
class ServerInfoServiceImpl(
private val serverInfoProperties: ServerInfoProperties
) : ServerInfoService {
) : ServerInfoService() {
override fun addHeader(response: ServerHttpResponse): ServerHttpResponse {
response