library(ambiorix)
app <- Ambiorix$new()
app$get("/", function(req, res){
res$send("Hello!")
})
app$get("/about", function(req, res){
res$send("About page")
})
app$start()
The stable version is available on CRAN with:
install.packages("ambiorix")
You can also install the development version from Github:
# install.packages("ambiorix")
remotes::install_github("ambiorix-web/ambiorix")
Please note that the ambiorix project is released with a Contributor Code of Conduct. By contributing to this project, you agree to abide by its terms.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.