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

Commit 5d1a523

Browse files
committed
update test-server API
1 parent 051400e commit 5d1a523

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

test-server/server.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,18 @@ app.get('/redirect', function(req, res) {
4242
res.redirect('/public/github.png')
4343
})
4444

45+
app.all('/params', function(req, res) {
46+
console.log(req.url)
47+
var resp =
48+
{
49+
time : req.query.time,
50+
name : req.query.name,
51+
lang : req.query.lang
52+
}
53+
console.log(resp)
54+
res.send(resp)
55+
})
56+
4557
// return an empty response
4658
app.all('/empty', function(req, res) {
4759
res.send('')

0 commit comments

Comments
 (0)