Cannot GET /POST? error in express?
You did not include the ejs file with the form you want to submit, but from the error you get it seems you are not doing a POST
request, but instead a GET
request to path /POST
. This is a completely different thing.
I guess in the form you have something like:
<form action='POST'>
but instead you need something like:
<form action='/' method='POST'>