FACG6 / emotion-detector

Our Website
https://emotionandfacerecognizer.herokuapp.com/
0 stars 0 forks source link

protect the route #24

Open SalwaMugh opened 5 years ago

SalwaMugh commented 5 years ago

https://github.com/FACG6/emotion-detector/blob/722171050724feb8aedef4fb487e6922f6d32d5d/src/router.js#L14

you need to protect your route from get METHOD rewrite it like this

else if (endponit === '/search' && req.method === 'POST')