OpenWebRX_Solar_SDR/openwebrx/owrx/controllers/api.py
Carsten Schmiemann 0c0cc5a490 Migrate to git
2022-02-10 23:48:55 +01:00

9 lines
268 B
Python

from . import Controller
from owrx.feature import FeatureDetector
import json
class ApiController(Controller):
def indexAction(self):
data = json.dumps(FeatureDetector().feature_report())
self.send_response(data, content_type="application/json")