mirror of
https://github.com/ZeroTier/ZeroTierOne
synced 2025-08-20 13:24:09 -07:00
test stuff
This commit is contained in:
parent
1cae7327ae
commit
07c1b4ddee
4 changed files with 83 additions and 80 deletions
|
@ -26,7 +26,8 @@ app.get('/:agentId',function(req,res) {
|
|||
return res.status(200).send(JSON.stringify(Object.keys(knownAgents)));
|
||||
});
|
||||
|
||||
app.post('/:agentId',function(req,res) {
|
||||
app.post('/:testNumber/:agentId',function(req,res) {
|
||||
var testNumber = req.params.testNumber;
|
||||
var agentId = req.params.agentId;
|
||||
if ((!agentId)||(agentId.length !== 32))
|
||||
return res.status(404).send('');
|
||||
|
@ -40,8 +41,9 @@ app.post('/:agentId',function(req,res) {
|
|||
}
|
||||
result = {
|
||||
agentId: agentId,
|
||||
testNumber: testNumber,
|
||||
receiveTime: receiveTime,
|
||||
result: resultData
|
||||
results: resultData
|
||||
};
|
||||
|
||||
var nows = receiveTime.toString(16);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue