"use strict";

let {
    getInternetStatus,
    getLastRefresh,
    getNumberOfUsersConnected,
    getSystemMemory,
    getSystemSpace,
    getSystemCpu,
    getSystemVersion
} = require("../controllers/dashboard.controller")

const { saveTelemetryData } = require('../middlewares/telemetry.middleware.js');

module.exports = app => {
    app.get("/dashboard/system/internetStatus", getInternetStatus);
    app.get("/dashboard/system/lastRefresh", getLastRefresh);
    app.get("/dashboard/system/usersConnected", getNumberOfUsersConnected);
    app.get("/dashboard/system/memory", getSystemMemory);
    app.get("/dashboard/system/space", getSystemSpace);
    app.get("/dashboard/system/cpu", getSystemCpu);
    app.get("/dashboard/system/version", getSystemVersion);
}

"use strict";

let {
    getInternetStatus,
    getLastRefresh,
    getNumberOfUsersConnected,
    getSystemMemory,
    getSystemSpace,
    getSystemCpu,
    getSystemVersion,
    getDeviceID
} = require("../controllers/dashboard.controller")

const { saveTelemetryData } = require('../middlewares/telemetry.middleware.js');

module.exports = app => {
    app.get("/dashboard/system/internetStatus", getInternetStatus);
    app.get("/dashboard/system/lastRefresh", getLastRefresh);
    app.get("/dashboard/system/usersConnected", getNumberOfUsersConnected);
    app.get("/dashboard/system/memory", getSystemMemory);
    app.get("/dashboard/system/space", getSystemSpace);
    app.get("/dashboard/system/cpu", getSystemCpu);
    app.get("/dashboard/system/version", getSystemVersion);
    app.get("/dashboard/system/deviceID", getDeviceID);
}

Add a route for retrieval of device ID
Add a route for retrieval of device ID
