Spaces:
Sleeping
Sleeping
| library(plumber) | |
| library(tidyverse) | |
| # 'plumber.R' is the location of the file shown above | |
| message("---- load utils function ----") | |
| source(file = "utils_function.R") | |
| message("---- load any data ----") | |
| source(file = "data_loader_script.R") | |
| message("---- run plumber ----") | |
| pr() %>% | |
| pr_mount("/a", pr("services/a_services.R")) %>% | |
| pr_mount("/b", pr("services/b_services.R")) %>% | |
| pr_mount("/utils", pr("function.R")) %>% | |
| pr_set_docs(F) %>% | |
| pr_run(host = "0.0.0.0", port=7860) |