mysociety / popit

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

The 'url' property in API responses is incorrect for v1.0.0-alpha API #821

Open chrismytton opened 9 years ago

chrismytton commented 9 years ago

The responses in the v1.0.0-alpha version of the API have an incorrect url property.

e.g. https://yournextmp.popit.mysociety.org/api/v1.0.0-alpha/persons/1004

The url is https://yournextmp.popit.mysociety.org/api/v0.1/persons/1004 but should be https://yournextmp.popit.mysociety.org/api/v1.0.0-alpha/persons/1004.

The source of the problem is this line in lib/apps/api/index.js