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",
ip: '192.168.3.1',
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",
name: 'RaspberryPi',
ip: '192.168.3.81',
last_active: "2020-03-21 11:12:33",
tag: ["win10"],
credentials:{
user: "pi",
password: "elastic"
@ -21,6 +24,7 @@ const random_endpoints = [
export default {
'get /endpoints/get_endpoints': function (req, res) {
setTimeout(() => {
res.json(random_endpoints);
}, 3000);