Added missing health check controller

This commit is contained in:
2023-09-23 21:10:26 +02:00
parent 118e8711d8
commit 08182dee6b
@@ -0,0 +1,19 @@
package de.twomartens.timetable.support.controller.v1
import de.twomartens.timetable.property.ServiceProperties
import io.swagger.v3.oas.annotations.Hidden
import org.springframework.web.bind.annotation.GetMapping
import org.springframework.web.bind.annotation.RequestMapping
import org.springframework.web.bind.annotation.RestController
@RestController
@RequestMapping(value = ["/timetable/v1"])
class HealthCheckController(private val properties: ServiceProperties) {
@Hidden
@GetMapping("/healthCheck")
fun healthCheck(message: String): String {
return properties.greeting.format(message)
}
}