Skip to content

ambiorix-web/signaculum

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Releases

No releases published

Languages