diff --git a/homepage/contact.html b/homepage/contact.html index b672440..7ae3832 100644 --- a/homepage/contact.html +++ b/homepage/contact.html @@ -83,7 +83,7 @@ alert("message sent."); $.ajax({ type: "POST", - url: '/post', + url: '/homepage', data: { name: $("#name").val(), email: $("#email").val(), diff --git a/index.js b/index.js index 2e2673a..62d8fb2 100644 --- a/index.js +++ b/index.js @@ -9,7 +9,7 @@ app.use(express.static('homepage')); -app.post('/post',function (req, res) { +app.post('/homepage',function (req, res) { console.log(req.body); // create reusable transporter object using the default SMTP transport