Open SamerElaila opened 6 years ago
https://github.com/facg3/MWM-Shop_Project/blob/e761e4d5a61dcf82570f808e98c8e50b8f240905/src/handler.js#L59
here you are returning JSON if everything is ok , but if the user is not authenticated you are returning redirecting to / and that route returns HTML.
/
Please be consistent!!
Done
https://github.com/facg3/MWM-Shop_Project/blob/e761e4d5a61dcf82570f808e98c8e50b8f240905/src/handler.js#L59
here you are returning JSON if everything is ok , but if the user is not authenticated you are returning redirecting to
/
and that route returns HTML.Please be consistent!!