meteor-rest
meteor-rest copied to clipboard
Access url & body parameters in `ValidatedMethod`
hey,
Im using simple:rest-method-mixin
to export some method outside the app.
Im using it as a webhook (some service posts data to the method url
(inside restOptions
).
Can someone give an example about how can I access that data? I have not find any in the docs/issues..
Thanks
Does your method accept any arguments? It might be that the payload is passed in as an additional argument. Try checking if there is any (additional) argument available by assigning it in the method definition and debugging.
You might also look in to the documentation about getArgsFromRequest
.