mirror of
https://github.com/jketterl/openwebrx.git
synced 2025-12-06 07:12:09 +01:00
10 lines
273 B
Python
10 lines
273 B
Python
|
|
from . import Controller
|
||
|
|
from owrx.metrics import Metrics
|
||
|
|
import json
|
||
|
|
|
||
|
|
|
||
|
|
class MetricsController(Controller):
|
||
|
|
def handle_request(self):
|
||
|
|
data = json.dumps(Metrics.getSharedInstance().getMetrics())
|
||
|
|
self.send_response(data, content_type="application/json")
|