Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
const drawSignatures = require("./drawSignatures");
const fastifyImp = require("fastify");
const fastify = fastifyImp({
logger: true
});
fastify.post("/", async (request, reply) => {
// Some sort of request validation
const bytes = await drawSignatures.drawSignatures(request.body.doc, request.body.signature);
reply.send(bytes);
});
module.exports = fastify;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.