Open
Description
Hi,
Can you please clarify what "Make sure to add this into accepts middleware" means exactly? I import it as:
jsonapi_formatter = require('restify-formatter-jsonapi');
So do you mean to do this?
server.use(restify.acceptParser(jsonapi_formatter));
Currently I'm trying:
const server = restify.createServer({
formatters: jsonapi_formatter
}
but that doesn't seem to be working, or at least if it is I can't find the formatted JSON in the request object anywhere. Can you please clarify how this is supposed to be used exactly? Would be super grateful.
Metadata
Metadata
Assignees
Labels
No labels