I made a simple app with nodejs and ejs templates for the views, the app in my local works perfectly, but when I deploy in AWS only the main page works and the login buttons etc. I get a proxy error. this is the structure of my app
I connect through pm2 and the only route that works is the route /api/home