Eu uso o windows. E dei o comando curl http://localhost:3000/pagamentos/pagamento e veio a seguinte resposta
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Error</title>
</head>
<body>
<pre>Cannot GET /pagamentos/pagamento</pre>
</body>
</html>
ai depois eu dei o comando: curl http://localhost:3000/pagamentos/pagamento -X POST
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Error</title>
</head>
<body>
<pre>Cannot POST /pagamentos/pagamento</pre>
</body>
</html>
ai quando eu viu dar o comando : curl http://localhost:3000/pagamentos/pagamento -X POST -v
Trying ::1...
* TCP_NODELAY set
* Connected to localhost (::1) port 3000 (#0)
> POST /pagamentos/pagamento HTTP/1.1
> Host: localhost:3000
> User-Agent: curl/7.55.1
> Accept: */*
>
< HTTP/1.1 404 Not Found
< X-Powered-By: Express
< Content-Security-Policy: default-src 'self'
< X-Content-Type-Options: nosniff
< Content-Type: text/html; charset=utf-8
< Content-Length: 160
< Date: Mon, 11 Mar 2019 14:26:02 GMT
< Connection: keep-alive
<
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Error</title>
</head>
<body>
<pre>Cannot POST /pagamentos/pagamento</pre>
</body>
</html>
* Connection #0 to host localhost left intact
No meu caso, não aparece o resp com OK, aparece o: < HTTP/1.1 404 Not Found. o que vocês acham que pode ser ?