18F / dol-whd-14c

The 14(c) system will become a modern, digital-first service. Applicants will be provided an intuitive online experience, guiding them through the information needed to complete their application correctly.
Other
16 stars 17 forks source link

Refactor duplicate code in apiService.js #332

Open mgwalker opened 7 years ago

mgwalker commented 7 years ago

apiService.js has several places where a slight variation of the following code exists:

$http({
  method: 'POST',
  url: url,
  headers: { 'Content-Type': 'application/x-www-form-urlencoded' }
}).then(

This could be factored out into a helper method.

mmurthydol commented 6 years ago

@mgwalker Greg, could you please take this on? Lemme know. Thanks!

mgwalker commented 6 years ago

Already worked on it in #446 but I closed it rather than interfere with ongoing work elsewhere.

mmurthydol commented 6 years ago

@EStriegel @phirefly Bottom of backlog. We'll ask for this when changes needed to be made in apiService.js.