sanscript-tech / medical-emergency-flutter-node

https://sanscript.tech
GNU General Public License v3.0
14 stars 18 forks source link

feat: login route added #63

Closed Arnab-31 closed 4 years ago

Arnab-31 commented 4 years ago

21

Arnab-31 commented 4 years ago

I have made the changes

BhavyaaArora-08 commented 4 years ago

When a user logs in

  1. Findbycredentials
  2. If no such user exists throw an error
  3. Else assign a token and return according to the response format.

Once you are done, please test the API routes and send a screenshot here as well. You can use Postman to test API

BhavyaaArora-08 commented 4 years ago

Have you made the changes? @Arnab-31

Arnab-31 commented 4 years ago

image image image image

Arnab-31 commented 4 years ago

@Codess08 I have added both the register and login routes along with proper error handling