<a href = /abc/hello> 누르면
hello.ejs 파일로 이동한다고 할떄
router.get('/hello', function(req, res) {
res.render('abc/hello');
});
이렇게 하면 될줄 알았는데 안되니까 당황스럽네요
|
답변 1개
채택된 답변
+20 포인트
Chamcode
4년 전
router.get('/abc/hello', function(req, res) {
res.render('abc/hello');
});
경로가 잘못되어 있네요.
답변을 작성하려면 로그인이 필요합니다.