Skip to content

Instantly share code, notes, and snippets.

@koptionalsoftware
Created March 31, 2020 23:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save koptionalsoftware/6399631de77fec7290ad92d77296de9f to your computer and use it in GitHub Desktop.
Save koptionalsoftware/6399631de77fec7290ad92d77296de9f to your computer and use it in GitHub Desktop.
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