export default function handler(req, res) {
console.log('123');
// if (req.method == 'GET') {
// res.status(200).json({ name: '안녕' });
// }
// if (req.method == 'POST') {
// res.status(200).json({ name: '바보' });
// }
}
이렇게해주고,
경로는 똑같이 해준 상태인데요
홈페이지에서 http://localhost:3000/api/test 해주고 엔터누르면 콘솔창에 123이 안나옵니다..ㅠ 혹시 제가 실수한 부분이있을까요?