split the controllers into separate files
This commit is contained in:
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")
|
Reference in New Issue
Block a user