I have made a simple project where I am maintaining data of my AWS dynamoDB, on first stage I am fetching all data through db and listing items, It works perfectly when I run project on my local machine but when I deployed this on heroku it crash on hitting my node api shows 404 error here is full error screenshot
I have also test project to run project on static port but won't work. You can check project https://funcardmaker.herokuapp.com/update
here is my Nodejs code https://gist.github.com/amit0shakya/41a91df6cccb45665fd16b869801922e
This is heroku server log. 2019-07-30T07:59:17.593103+00:00 heroku[router]: at=info method=GET path="/getalldata" host=funcardmaker.herokuapp.com request_id=97923dda-2645-48fd-a0c5-8cf8e69b2955 fwd="139.167.184.88" dyno=web.1 connect=0ms service=5ms status=404 bytes=416 protocol=https

PORTof yourNodeJSserver?nodejsserver's entry file