Custom rest API prefix
-
Hello!
First of all, thank-you for this awesome plugin. I love it. I am using JSON API Plus plugin to have additional endpoints, because this is a plugin I have a custom route for this so it doesn’t interfere with the default wordpress routes. Here is what my custom routes look like:
https://mysite/api/${endpoint}
https://mysite/api/get_recent_posts/ -> returns recent posts
I have NO intention on using any of the default WordPress routes (wp-json/…), I am a bit confused on how I can add https://mysite/api/get_recent_posts/ to the rest api cache. I have tried changing route prefix and other things with no avail. Is there a simple way I can do this with a callback / function?
Any help would be very much appreciated.
- The topic ‘Custom rest API prefix’ is closed to new replies.