This commit is contained in:
Jay 2017-05-04 17:29:20 +08:00
parent fbab4f44e8
commit bcc4b1ed7d

2
app.js
View File

@ -82,7 +82,7 @@ app.get('/viewcamimg/:dir/:img', async(req, res) => {
}) })
app.get('/servcmd', (req, res) => { app.get('/servcmd', (req, res) => {
res.send({ status: `exit time ${Date.now()}` }); res.send({ status: `exit time ${(new Date()).toString()}` });
setTimeout(() => { process.exit(1) }, 2000); setTimeout(() => { process.exit(1) }, 2000);
}); });