DEV Community

Divyanshu Tripathi
Divyanshu Tripathi

Posted on

Rest api endpoints are acessible on the localhost but not on the server

Hi, As I'm fresher of 4 month into web-development into the industry,
I'm working on a big project that uses cms to update on the website and post the data to the database of mongo-db Atlas to update the database

as I was working on api to create new endpoints but the problem as i have created the api endpoints they are working fully fine on the localhost and fetching the data fully fine but as i edited the files of server through use of file-zilla then there is error of can't get /the-end-point that are newly created not a single one are working
kindly suggest me help here its on urgent to be done

kindly find the picture where im fetching the data on local and server

Image description
Image description

Top comments (1)

Collapse
 
timorto profile image
Timorto

great post you have shared i really like it . world 777 casino