Separate the post endpoints from the router
|Reported by:||rmccue||Owned by:||rmccue|
|Milestone:||2013 Final (1.0)||Priority:||normal|
|Component:||JSON REST API||Keywords:|
The WP_JSON_Server class is becoming unwieldy as-is with the tasks of both routing and serving the API, as well as holding the post endpoints.
These should be split into a separate class. This will also help when implementing custom post type endpoints, such as in #271.