How to create and define custom methods with different HTTP Method in my own custom app?
Let’s say I have 3 methods:
- method X
- method Y
- method Z
I want method X to be accessed by POST method.
I want method Y to be accessed by PUT method.
I want method Z to be accessed by GET method.