forked from ixpantia/faucet-router-example
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfrouter.toml
40 lines (35 loc) · 831 Bytes
/
frouter.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# In this route we use `workdir` to start the child
# R session on a different working directory.
[[route]]
route = "/sliders/"
workers = 1
server_type = "Shiny"
workdir = "./sliders"
# In this route we use `app_dir` to start the R session
# in the current working directory but use an app in
# a directory.
[[route]]
route = "/text/"
workers = 1
server_type = "Shiny"
app_dir = "./text"
# Showcase on serving a quarto shiny app
[[route]]
route = "/qmd/"
workers = 1
server_type = "QuartoShiny"
workdir = "./qmd"
qmd = "old_faithful.qmd"
# Showcase on serving a Plumber API
[[route]]
route = "/api/"
workers = 1
server_type = "Plumber"
workdir = "./api"
# By default the `workdir` and `app_dir`
# is `.` (Here). If we don't specify
# it runs the app in the current dir.
[[route]]
route = "/"
workers = 1
server_type = "Shiny"