update mock

This commit is contained in:
medcl 2020-03-22 00:08:59 +08:00
parent f107c5f355
commit 17528cc096
1 changed files with 5 additions and 1 deletions

View File

@ -4,12 +4,15 @@ const random_endpoints = [
name: "LENOVO", name: "LENOVO",
ip: '192.168.3.1', ip: '192.168.3.1',
status: "active", //active/inactive/unmonitored status: "active", //active/inactive/unmonitored
last_active: "2020-03-21 11:12:33" last_active: "2020-03-21 11:12:33",
tag: ["win10"]
}, },
{ {
os: "Linux", os: "Linux",
name: 'RaspberryPi', name: 'RaspberryPi',
ip: '192.168.3.81', ip: '192.168.3.81',
last_active: "2020-03-21 11:12:33",
tag: ["win10"],
credentials:{ credentials:{
user: "pi", user: "pi",
password: "elastic" password: "elastic"
@ -21,6 +24,7 @@ const random_endpoints = [
export default { export default {
'get /endpoints/get_endpoints': function (req, res) { 'get /endpoints/get_endpoints': function (req, res) {
setTimeout(() => { setTimeout(() => {
res.json(random_endpoints); res.json(random_endpoints);
}, 3000); }, 3000);