showing results for - "next js get request"
Natalia
26 Jan 2017
1export default async (req, res) => {
2  if (req.method === "GET") {
3   // function only runs if the method is GET
4  }
5}