I'm working on the weather app journal, and I am stumbling on some kind of a weird bug I tried searching google, but I couldn't find anything helpful
Uncaught (in promise) SyntaxError: Unexpected token '<', "<!DOCTYPE "... is not valid JSON
It appears that fetch returns a response, however when I try using the .json method on fetch it gives an error, and it somehow goes to the first line of the html file. It also appears that the response is empty, it doesn't have the data I wish to send from the server.
this is my GET route for the client side (app.js) file
](https://i.stack.imgur.com/RAwsV.png)
this is my code for the GET route on the server side (server.js) file
](https://i.stack.imgur.com/kCcw6.png)
note: the console.log("Data Sent") is never printed on the terminal
](https://i.stack.imgur.com/fdkVD.png)
Edit: I figured out the response I'm getting from the GET request is the html file

How can I resolve this problem?
](https://i.stack.imgur.com/FtaWq.png)
