Routes - Customers

File Name : customers.js
File Path : /server/routes/customers.js
Customers route contains getAllCustomers. These functionalities are included in customer Controller.

Get All Customers For Admin

  1. API Path: api/customer/getCustomers
  2. Method: GET
  3. Description: This is a protected route which gets the user details through JWT access token which is provided in the header.
  4. Parameters:

    • Name: req
    • Type: Object
    Name In Type
    pageNo req.query number
  • Name: jwtAccessToken
  • In: Header
  • Type: String
  • Description: JWT access token is used to check the authenticity of the user.
  • Name: res

    • Type: Object
    • Description: res is nothing but the response object which gets you the customers details.
  • Response:

    • Http Code: 200
    • Name: returnObj
    • Type: Object
    Name Type
    success boolean
    message string
    data array

results matching ""

    No results matching ""