stefi23 / ski-with-me

⛷️ 🏂 Find people to go ski/snowboard with
2 stars 1 forks source link

updated addUser and login functions with new syntax #26

Closed stefi23 closed 3 years ago

stefi23 commented 3 years ago

Hi @mathieudutour,

I moved the axios post requests from the .then syntax to try-catch for both Login and Register components. I found that I no longer need to pass the header (headers: { "Content-type": "application/json" }) as it didn't work with it. Is this done correctly?

It worked but thought it's best to double check.

Thank you, Stefi

26