angularjs - Angular js Passport example is not working -


i trying follow example:

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

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -