#* Basic health diagnostics
#*
#* @get /health
health <- function() {
redis_status <- "NOT DETECTED"
if (!is.null(getRedisClient())) {
redis_status <- "OK"
}
list(
server = "OK",
redis = redis_status
)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.