INNER CODE UNIT · TypeScript

handler

PiyushSuthar/github-readme-quotes · api/index.ts:22

const handler = async (req: VercelRequest, res: VercelResponse) => {
  const { 
    type, 
    theme, 
    quote, 
    author, 
    border,
    quoteColor,
    authorColor,
    backgroundColor,
    symbolColor
  } = req.query as unknown as ResponseQuery;

  let data;

  if (quote && author) {
    data = {
      quote: quote,

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…