Updated rest.js to use the same config