Hi, My team and I are implementing a despatch generation API for a university project and our api was working perfectly before I implemented authorization using jwt tokens. Our first error was a 502 bad gateway and then only the base page (which does not take any input from the user) shows a 404 error. Wondering if anyone can help with this. The code works when I test on postman but when we deployed it(we are using serverless) we were running into a 502 error which I have fixed (it was missing a module). Now when I deploy locally we run into the 404 error just for the base page. Other pages seem to be working.
Pictures:
The 404 error:
Other routes work okay:
this is the endpoint I am trying to access:
this is the severless.yml file:
this is how I authenticate the token: