Closed yuvilio closed 6 years ago
This PR does two main things, per #85 :
This enables access to posts via API Json for Sample Page: http://www.bubs.loc/wp-json/wp/v2/pages/2
Altenate route provided by postlight (api-routes.php) using slug: http://www.bubs.loc/wp-json/postlight/v1/page/?slug=sample-page
If enabled, pages and posts redirect to the json: ex: http://www.bubs.loc/sample-page/ -> http://www.bubs.loc/wp-json/wp/v2/pages/2
This PR does two main things, per #85 :
This enables access to posts via API Json for Sample Page: http://www.bubs.loc/wp-json/wp/v2/pages/2
Altenate route provided by postlight (api-routes.php) using slug: http://www.bubs.loc/wp-json/postlight/v1/page/?slug=sample-page
If enabled, pages and posts redirect to the json: ex: http://www.bubs.loc/sample-page/ -> http://www.bubs.loc/wp-json/wp/v2/pages/2