Skip to content

ambiorix-web/druid

Folders and files

NameName
Last commit message
Last commit date

Latest commit

175b8d8 · Feb 27, 2022

History

3 Commits
Feb 27, 2022
Feb 27, 2022
Feb 27, 2022
Feb 27, 2022
Feb 27, 2022
Feb 27, 2022
Feb 27, 2022
Feb 27, 2022

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()