docs: function endpoint(func, opts) {
    const options = opts || {};
  
    /**
      runs endpoint handler, use res.send(statusCode, body) finish api call successfully
      @name endpointHandler
      @function
      @param {req} req
      @param {res} res
  
    */
    return function endpointHandler() {
      // call mapper with endpointHandlers args
      const input = eventMapper.apply({ options }, arguments);
      const req = input.req;
      const res = input.res;
  
      return func(req, res);
    };
  }