var urlProcessor = require('./processor');
/*
* @module config/server/url-builder
* @param url - url with params such as http://url/entity/${id}
* @param method - HTTP verb {GET, POST, PUT, DELETE}
* @return {function}
*/
module.exports =  function(url, method){
  /**
   * Function returns by the module.
   * @param  {object} param - urlData: The JSON data to inject in the URL, data: The JSON data to give to the request.
   * @return {function} returns a function which takes the URL as parameters.
   */
  return function generateUrl(param){
    return {
      url: urlProcessor(url, param.urlData),
      method: method,
      data: param.data
    };
  };
};

@@ -231,17 +231,16 @@
 xports =
- 
  functio

change url builder.