Wrapping endpoints

Within a plumber API, say I have two endpoints:

  1. /get_data1
  2. /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"
    data1 = data1,
    data2 = data2

Referred here by rstudio/plumber

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.