Skip to content

Wip/add routes#3

Open
mithilesh-08 wants to merge 9 commits intofeat/add-daos-for-modelsfrom
wip/add-routes
Open

Wip/add routes#3
mithilesh-08 wants to merge 9 commits intofeat/add-daos-for-modelsfrom
wip/add-routes

Conversation

@mithilesh-08
Copy link
Copy Markdown
Owner

Ticket Link


Related Links


Description

Added 4 new orutes

  1. user can register as a rider or a driver
  2. user can login - the login api will send the access token which we get from the Oauth system
  • the Oauth system now also accepts userId in the metadata to be used in protected routes
  1. riders - riders can now see nearby dirvers using their current lat long within a radius
  2. driver - endpoint to update driver's current location if a driver location entry is not present a new one is created

Tests

  1. Added tests for the routes

Fixes

  1. ests failed deu to snake case data in mockdata changed that to camel case

Chore

  1. pricing model still had triggers for updated Date time removed that
  2. confirmed that sequalize will automatically change the updated_at

Steps to Reproduce / Test



Checklist

  • PR description included
  • yarn test passes
  • Tests are [changed or added]
  • Relevant documentation is changed or added (and PR referenced)

GIF's


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant