# Use the default mirai backend by setting `async = TRUE` with a handler
pa <- api() |>
api_get("/hello/", function(name) {
list(
msg = paste0("Hello ", name, "!")
)
}, async = TRUE)
Run the code above in your browser using DataLab