You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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__/.
The text was updated successfully, but these errors were encountered:
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__/
.The text was updated successfully, but these errors were encountered: