Updated location endpoints to use the new locations endpoints