mirror of
https://github.com/jketterl/openwebrx.git
synced 2025-12-06 07:12:09 +01:00
update "new sdr" routing too to avoid conflicts
This commit is contained in:
parent
03315d7960
commit
400ed3541d
|
|
@ -84,7 +84,7 @@ class SdrDeviceListController(AuthorizationMixin, WebpageController):
|
|||
{devices}
|
||||
</ul>
|
||||
<div class="buttons container">
|
||||
<a class="btn btn-success" href="sdr/new">Add new device...</a>
|
||||
<a class="btn btn-success" href="newsdr">Add new device...</a>
|
||||
</div>
|
||||
""".format(
|
||||
devices="".join(render_device(key, value) for key, value in Config.get()["sdrs"].items())
|
||||
|
|
|
|||
|
|
@ -121,9 +121,9 @@ class Router(object):
|
|||
"/settings/general", GeneralSettingsController, method="POST", options={"action": "processFormData"}
|
||||
),
|
||||
StaticRoute("/settings/sdr", SdrDeviceListController),
|
||||
StaticRoute("/settings/sdr/new", NewSdrDeviceController),
|
||||
StaticRoute("/settings/newsdr", NewSdrDeviceController),
|
||||
StaticRoute(
|
||||
"/settings/sdr/new", NewSdrDeviceController, method="POST", options={"action": "processFormData"}
|
||||
"/settings/newsdr", NewSdrDeviceController, method="POST", options={"action": "processFormData"}
|
||||
),
|
||||
RegexRoute("^/settings/sdr/([^/]+)$", SdrDeviceController),
|
||||
RegexRoute(
|
||||
|
|
|
|||
Loading…
Reference in a new issue