I have a plumber API where I'm trying to serve an html landing page at the root url. When using the annotation #* @assets ./files, I get index.html rendered properly at /public/, along with documentation at /__docs__/. When I use #* @assets ./files /, I get index.html rendered properly, but for the documentation I get a 404 error. Regardless of the path the app serves to (/public/ or /), the /add endpoint works.
I expect to be able to serve files at the root url with #* @assets ./files / and have the documentation served at /__docs__/.
System details
Output of
sessioninfo::session_info()()
:Example application or steps to reproduce the problem
File structure:
Contents of
plumber.R
where things work as expected:Contents of
plumber.R
where things do not work as expected:Contents of
index.html
:Describe the problem in detail
I have a plumber API where I'm trying to serve an html landing page at the root url. When using the annotation
#* @assets ./files
, I getindex.html
rendered properly at/public/
, along with documentation at/__docs__/
. When I use#* @assets ./files /
, I getindex.html
rendered properly, but for the documentation I get a 404 error. Regardless of the path the app serves to (/public/
or/
), the/add
endpoint works.I expect to be able to serve files at the root url with
#* @assets ./files /
and have the documentation served at/__docs__/
.