export default function handler(req, res) {
        res.status(200).json({  })
      }

      Javascript language logo
      your recipe card header background
      Next API handler

      next
      api
      handler
      NextJS Javascript Recipes

      The handler() function exports a function that takes two arguments: req and res. The handler() function sets the res.status() function call to 200 and returns the result as a JSON object.

      Shortcut: next.api.handler.create

      0 Comments

        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.