Skip to content

Latest commit

 

History

History
37 lines (25 loc) · 599 Bytes

README.md

File metadata and controls

37 lines (25 loc) · 599 Bytes

signaculum

Caches favicons for ambiorix.

Installation

# install.packages("remotes")
remotes::install_github("devOpifex/signaculum")

Example

Serve the favicon with signaculum, pass it the path to your favicon.ico.

library(signaculum)
library(ambiorix)

app <- Ambiorix$new()

app$get("/", \(req, res) {
  res$send("Hello")
})

# path to favicon
favicon <- system.file("favicon.ico", package = "signaculum")

# serve it with signaculum
app$get("/favicon.ico", signaculum(favicon))

app$start()