Added controller
This commit is contained in:
parent
9cfe8ee7ba
commit
85e5eecfbc
|
|
@ -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() {
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -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() {
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue