exports.handler = function(request,response,state) {
I can see in the PUT example, we can get JSON body from the state
? Why not get it from the request body?
var title = $tw.utils.decodeURIComponentSafe(state.params[0]),
fields = $tw.utils.parseJSONSafe(state.data);
So what is this state
actually? Is there a doc for it, or where is the essential code of it? I can write a TS type for it if I understand it.