mirror of
https://github.com/ha7ilm/openwebrx.git
synced 2026-04-04 14:07:32 +00:00
split the controllers into separate files
This commit is contained in:
parent
b110705f45
commit
451eb99f8a
10 changed files with 234 additions and 221 deletions
9
owrx/controllers/api.py
Normal file
9
owrx/controllers/api.py
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
from . import Controller
|
||||
from owrx.feature import FeatureDetector
|
||||
import json
|
||||
|
||||
|
||||
class ApiController(Controller):
|
||||
def handle_request(self):
|
||||
data = json.dumps(FeatureDetector().feature_report())
|
||||
self.send_response(data, content_type="application/json")
|
||||
Loading…
Add table
Add a link
Reference in a new issue