Add POST method to server.js

This commit is contained in:
Cédric FAMIBELLE-PRONZOLA
2021-05-22 23:33:53 +02:00
parent 14bd57f1c9
commit 5de0961df4
+4
View File
@@ -35,6 +35,10 @@ app.prepare().then(() => {
return handle(request, response)
})
server.post('*', (request, response) => {
return handle(request, response)
})
server.listen(port, error => {
if (error) {
throw error