Skip to content
This repository was archived by the owner on Mar 16, 2019. It is now read-only.

Commit 889c038

Browse files
committed
Add test server API for #63
1 parent 856b1c4 commit 889c038

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

test-server/server.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,19 @@ app.use(function(req, res, next) {
6363
next();
6464
})
6565

66+
app.all('/echo', (req, res) => {
67+
var body = ''
68+
req.on('data', (chunk) => {
69+
body+=chunk
70+
})
71+
req.on('end', () => {
72+
res.send({
73+
headers : req.headers,
74+
body : body
75+
})
76+
})
77+
})
78+
6679
app.use(upload.any())
6780
app.use('/public', express.static('./public'))
6881
// for redirect test

0 commit comments

Comments
 (0)