Writing a middleware functions as a REST-API call
I’m new to wordpress. My usual stack is MERN stack. Currently I joined with a wordpress project and their we want to write some middleware function inside the wordpress project. The process is like this (this is kind a like a REST-API);
– We have to expose POST request to outside;
– Once the request come we have to create some object and call another API
Is this possible?