For my own sanity I\'m trying to create a route for an ajax api that looks something like:
/api/
I\'d like wordpress to handle th
Seems like you are looking for wordpress json-api plugin,which is one of the nicely built plugins I have used,also very easily extendable.Good luck.