Within a plumber API, say I have two endpoints:
/get_data1
/get_data2
Is it possible to wrap these such that a single endpoint /get_data
can return a list of the two endpoints above? Something like:
function() {
data1 <- "/get_data1"
data2 <- "/get_data2"
list(
data1 = data1,
data2 = data2
)
}
Referred here by rstudio/plumber