In some cases it would be useful to be able to give back server side generated content. Currently custom JS functions only supports application/json via ctx.success({}) and statics only supports static content delivered by path extension match. Following changes would be possible:
In some cases it would be useful to be able to give back server side generated content. Currently custom JS functions only supports
application/json
viactx.success({})
and statics only supports static content delivered by path extension match. Following changes would be possible:ctx.success
output type (String, Object, Array, etc.) https://github.com/MikeBild/graphql-pouch/blob/master/lib/functions/index.js#L49all('/*')
and dispatch by path extensions