Routes - Trip
File Name : trip.js
File Path : /server/routes/trip.js
It has all the protected routes and contains route related to user trip. These functionalities are included in Trip Controller.
User Trip History Route
- API Path: api/trips/history
- Method: GET
- Description: This route get the details of all the trip in which user is involved.
- Parameters:
- Name: req
- Type: Object
- Name: jwtAccessToken
- In: Header
- Type: String
- Description: JWT access token used to check the authenticity of the user.
Response: Returns an object with three properties: success (bool), message, data. The third parameterdatais an object with two properties: jwtAccessToken and user object.
- Http Code: 200
- Name: returnObj
- Type: Object
Name Type success boolean message string data Object