Code works on glitch, but not in locally

i made a get method that sends data from the server to the client to display on html and it worked on glitch, but due to glitch’s limited space (i ues a database that rises a lot so it’s not enough space) i moved to run it on a domain of my own, the get code doesn’t work tho like it was on glitch, and it showed me that error: Failed to load resource: the server responded with a status of 404 (Not Found)

hopefully someone here would be able to help me, if you need to see the code i’ll show you.

Yes, please share the code (either DM me a join link if it’s private or link it here).