[SOLVED] Warp serves HTML but JS file not loaded


I have the following setup:

main.rs **server run from here**

The myHTML.html contains the following:

<script src="myJS.js"></script>

The path in main.rs is defined as:


When I run the warp server in main.rs it serves the myHTML.html file but myJS.js is not loaded. When I just load the html file in the browser directly it loads the js file just fine, so the path seems correct. What do I need to do to have warp load the js file?

I’m dumb. Just need to add another route for the JS file warp::fs::file("./sub3/myJS.js")).