Add root API route
This commit is contained in:
@@ -19,6 +19,13 @@ fun main() {
|
|||||||
|
|
||||||
fun Application.module() {
|
fun Application.module() {
|
||||||
routing {
|
routing {
|
||||||
|
get("/") {
|
||||||
|
call.respondText(
|
||||||
|
text = "RUVNOX Tactical API",
|
||||||
|
contentType = ContentType.Text.Plain
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
get("/health") {
|
get("/health") {
|
||||||
call.respondText(
|
call.respondText(
|
||||||
text = "RUVNOX Tactical server online",
|
text = "RUVNOX Tactical server online",
|
||||||
|
|||||||
Reference in New Issue
Block a user