Routes of backend not working

When I was testing my backend using localhost, I could fetch easily and could see all the routes. But after I deployed it, the routes are not working.

Github link - GitHub - Coder030/classroom_backend

Render link - https://classroom-backend-u7q5.onrender.com

Please help
Thanks

please tell me the moment you have seen my post. :blush:

Hi there,

I can see at least the / handler works. You other routes look to be protected to they are harder to check. Note that you have committed your dist directory to GitHub, you probably want to remove that and add it to your .gitignore. You should build your service on Render. and not commit build artifacts to source control.

Regards,

Keith
Render Support, UTC+10 :australia:

  1. Thanks for telling me that my dist folder is public. I will surely add it to .gitignore.
  2. You are right, my links are protected, but at least the middleware output should come, right? It is {‘nvt’}, which stand for not valid token. Right now, it can’t even find the route.
  3. I couldn’t understand the port of you saying -
    You should build your service on Render. and not commit build artifacts to source control.
    Thanks

@keith, please help me…