mirror of
https://github.com/2martens/tsw-timetable.git
synced 2026-10-17 16:06:51 +02:00
Added missing health check controller
This commit is contained in:
+19
@@ -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)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user