Simple Linux Panel
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
mdserver-web/route/system.py

39 lines
788 B

# coding:utf-8
import time
import psutil
import os
import sys
from flask import Flask, session
from flask import Blueprint, render_template
from flask import jsonify
sys.path.append("class/core")
import public
import system_api
system = Blueprint('system', __name__, template_folder='templates')
@system.route("/network")
def network():
data = system_api.system_api().getNetWork()
return public.getJson(data)
@system.route("/update_panel")
def updatePanel():
return public.returnJson(False, "12")
@system.route("/system_total")
def systemTotal():
data = system_api.system_api().getSystemTotal()
return public.getJson(data)
@system.route("/disk_info")
def diskInfo():
diskInfo = system_api.system_api().getDiskInfo()
return public.getJson(diskInfo)