add test page
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
package com.android.trisolarisserver.controller
|
||||
|
||||
import org.springframework.web.bind.annotation.GetMapping
|
||||
import org.springframework.web.bind.annotation.RestController
|
||||
|
||||
@RestController
|
||||
class Health {
|
||||
@GetMapping("/health")
|
||||
fun health(): Map<String, String> {
|
||||
return mapOf("status" to "ok")
|
||||
}
|
||||
|
||||
@GetMapping("/")
|
||||
fun root(): Map<String, String> {
|
||||
return mapOf("status" to "ok")
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user