📜  next js 获取请求 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:01:57.496000             🧑  作者: Mango

代码示例1
export default async (req, res) => {
  if (req.method === "GET") {
   // function only runs if the method is GET
  }
}