implement "add profile" sequence

This commit is contained in:
Jakob Ketterl
2021-03-03 22:33:37 +01:00
parent 400ed3541d
commit 8671f98c14
2 changed files with 60 additions and 8 deletions

View File

@@ -11,6 +11,7 @@ from owrx.controllers.settings.sdr import (
SdrDeviceController,
SdrProfileController,
NewSdrDeviceController,
NewProfileController,
)
from owrx.controllers.settings.reporting import ReportingController
from owrx.controllers.settings.backgrounddecoding import BackgroundDecodingController
@@ -129,6 +130,13 @@ class Router(object):
RegexRoute(
"^/settings/sdr/([^/]+)$", SdrDeviceController, method="POST", options={"action": "processFormData"}
),
RegexRoute("^/settings/sdr/([^/]+)/newprofile$", NewProfileController),
RegexRoute(
"^/settings/sdr/([^/]+)/newprofile$",
NewProfileController,
method="POST",
options={"action": "processFormData"},
),
RegexRoute("^/settings/sdr/([^/]+)/profile/([^/]+)$", SdrProfileController),
RegexRoute(
"^/settings/sdr/([^/]+)/profile/([^/]+)$",