Signaculum
Caches favicons for ambiorix.
Installation
# install.packages("remotes")
remotes::install_github("ambiorix-web/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()