You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
235 B
Python
12 lines
235 B
Python
5 years ago
|
from flask.blueprints import Blueprint
|
||
|
|
||
|
from .stats import get_stats
|
||
|
|
||
|
api_bp = Blueprint('api', __name__)
|
||
|
|
||
|
|
||
|
@api_bp.route("/stats")
|
||
|
def stats():
|
||
|
"""Returns resource utilization statistics similar to `top`"""
|
||
|
return get_stats()
|