Skip to content

ambiorix-web/druid

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

druid

A logger middleware for ambiorix.

Installation

# install.packages("devtools")
devtools::install_github("devOpifex/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()