#' @get /
#' @html
function(res, req) {
language <- as.list(req$HEADERS)[["accept-language"]]
paste0(hello::world(language, type = "string"), "\n")
}
#' @get /hello/<animal>
#' @html
function(res, req, animal) {
paste0(hello::monde(by = animal, type = "string"), "\n")
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.