Express has the ability to serve static files at a different virtual location:
app.use('/static', express.static('public'))
However, I'm using Java for my server using Spark Java. I know how to serve static files, but is it even possible for Spark Java to serve static files at a virtual location? If it is possible, how? I have searched for a while, but all the tutorials I find just tell me how to serve static files, not serve static files at a virtual location.
Edit: an explanation of "virtual location": Lets suppose this is the current dir:
public/
|-----index.html
|-----style.css
|-----etc...
Then, we can get a webpage with http://localhost:8080/public/index.html
However, I want to change it so that I have it can get the webpage with
http://localhost:8080/somedir/virtual/pathindex.html