travist / meanapp

An example M.E.A.N web application with full CRUD features.
163 stars 154 forks source link

Can't get the right reply if requesting "/movie" #8

Open ghostvic opened 8 years ago

ghostvic commented 8 years ago

In the video, before starting Angular.js, when requesting "/movie", the mangodb collections shown up, I added some data in my db but I didn't get the expected result. What I did to mongodb: db.movie.save({title:"Let it go", url:"https://www.youtube.com/watch?v=L0MK7qz13bU"})

But I got "Cannot GET /movie" after requsting localhost:3000/movie

Could anybody help me with it? Thanks.

khamarshaikh commented 7 years ago

even i am facing the same problem even after requesting localhost:3000/movie i get output as "cannot get /movie"

y13uc130 commented 6 years ago

try this without using the resourcejs, I mean the previous commit (node-restful)

and the problem in the code is, in route.js, instead of 'movie', give it as '/movie' . worked for me.