mysociety / popit-api

DEPRECATED - Development on PopIt has stopped and it is no longer being maintained
https://goo.gl/Vvej4Q
Other
17 stars 3 forks source link

Switch the API to use body-parser and multer #106

Closed chrismytton closed 9 years ago

chrismytton commented 9 years ago

Because the UI is now using these modules it processes the request before it gets to the API, which seems to confuse the old bodyParser middleware and throws an error.

The simple solution is to switch the API to use the same modules as the UI.

Fixes https://github.com/mysociety/popit/issues/718

struan commented 9 years ago

This looks fine to me.