Fix /pages references in WP_JSON_CustomPostType

This commit changes two hardcoded references to the `/pages` route in the `WP_JSON_CustomPostType` class that look like they should be using that instance's `$base` route (possibly a hangover from abstracting the `WP_JSON_Pages`?)