static route at the root path does not work as expected
Closed this issue · 2 comments
LoganTann commented
Hello, in a first place, thanks to the dev, this is a very nice library !
I'm trying to embed a basic front-end with aqua. I created the following code :
const app: Aqua = new Aqua(3000);
app.serve("web-front", "/");
Expected Behavior : Going to localhost:3000/index.html
should show file web-front/index.html
Current Behavior:
localhost:3000/index.html
produces a 404 error.localhost:3000//index.html
does the expected result.
felixfong227 commented
from my understanding, the cost of this issue is because of a missing "/" when reading the file from the disk, and I think I got it fixed in #94 (🤞
predetermined commented
Fix included in v1.3.4. Thank you both!