const pidusage = require('pidusage');
const os = require('os');
const AdminService = require('../../services/admin/AdminService');

class ServerStatusController {
  static async getStatus(req, res) {
    try {
      const status = await AdminService.getServerStatus();
      res.json(status);
    } catch (error) {
      res.status(500).json({ status: 'Offline', error: error.message });
    }
  }
}

module.exports = ServerStatusController;