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}
|
{devices}
|
||||||
</ul>
|
</ul>
|
||||||
<div class="buttons container">
|
<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>
|
</div>
|
||||||
""".format(
|
""".format(
|
||||||
devices="".join(render_device(key, value) for key, value in Config.get()["sdrs"].items())
|
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"}
|
"/settings/general", GeneralSettingsController, method="POST", options={"action": "processFormData"}
|
||||||
),
|
),
|
||||||
StaticRoute("/settings/sdr", SdrDeviceListController),
|
StaticRoute("/settings/sdr", SdrDeviceListController),
|
||||||
StaticRoute("/settings/sdr/new", NewSdrDeviceController),
|
StaticRoute("/settings/newsdr", NewSdrDeviceController),
|
||||||
StaticRoute(
|
StaticRoute(
|
||||||
"/settings/sdr/new", NewSdrDeviceController, method="POST", options={"action": "processFormData"}
|
"/settings/newsdr", NewSdrDeviceController, method="POST", options={"action": "processFormData"}
|
||||||
),
|
),
|
||||||
RegexRoute("^/settings/sdr/([^/]+)$", SdrDeviceController),
|
RegexRoute("^/settings/sdr/([^/]+)$", SdrDeviceController),
|
||||||
RegexRoute(
|
RegexRoute(
|
||||||
|
Loading…
Reference in New Issue
Block a user