2020-02-23 16:22:13 +00:00
|
|
|
from . import Controller
|
|
|
|
from owrx.feature import FeatureDetector
|
|
|
|
import json
|
|
|
|
|
|
|
|
|
|
|
|
class ApiController(Controller):
|
2020-02-23 17:32:37 +00:00
|
|
|
def indexAction(self):
|
2020-02-23 16:22:13 +00:00
|
|
|
data = json.dumps(FeatureDetector().feature_report())
|
|
|
|
self.send_response(data, content_type="application/json")
|