Open chrismytton opened 9 years ago
The responses in the v1.0.0-alpha version of the API have an incorrect url property.
url
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
lib/apps/api/index.js
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