Handle multiple HTTP methods for the same path
4nth0 opened this issue · comments
Currently, there is no way to have multiple methods for the same path.
Routes are declared with the following format :
routes:
"/foo":
body: "bar"
By default, the GET
method is used.
Here the way to set the method :
routes:
"/foo":
method: "POST"
body: "bar"
To handle multiple methods for the same route it can be interesting to use the following declaration format :
routes:
"/foo":
methods:
"GET"
body: "bar from get method"
"POST"
body: "bar from post method"