# Add a new route and use it for a handler
api() |>
api_add_route("logger_route") |>
api_any(
"/*",
function() {
cat("I just handled a request!")
},
route = "logger_route"
)
Run the code above in your browser using DataLab