M
M
Michael2016-09-22 22:46:24
Node.js
Michael, 2016-09-22 22:46:24

Why is jade not responding to a post request?

I'm trying to render a jade template using express:

app.post('/registration', (req, res) => {
  res.render('main.jade');
});

And in the console I see: res.render is not a function
At the same time, the get-request is processed normally. It turns out that a POST request cannot render jade?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question