Druid
A logger middleware for ambiorix.
Installation
# install.packages("devtools")
devtools::install_github("ambiorix-web/druid")
Example
Pass the druid
function to the use
method.
library(druid)
library(ambiorix)
app <- Ambiorix$new(log = FALSE)
app$use(
druid(
path_info = TRUE,
remote_port = TRUE
)
)
app$get("/", \(req, res){
res$send("Using {ambiorix}!")
})
app$start()