angularjs - Angular js Passport example is not working -
i trying follow example:
- source : https://github.com/daftmonk/angular-passport
- demo website: http://angular-passport.herokuapp.com/
i copied , pasted app , server same.
routes work (in server side , client side too)
when tried log in or sign 404 error server.
here server-side routes part.
i checked app.get('/robots.txt')
works.
and routes part login (that gave me 404 error):
app.post('/auth/session', session.login);
but tried:
app.post('/auth/session', function(req,res){ console.log('here session requested'); res.sendfile('robots.txt'); });
this code checking whether server respond well.
but still got 404 error.
how can fix works? ir how can test post routings console.log or, else?
try using postman chrome extension debugging restful api s https://chrome.google.com/webstore/detail/postman-rest-client/fdmmgilgnpjigdojojpjoooidkmcomcm?hl=en
Comments
Post a Comment