update "new sdr" routing too to avoid conflicts

This commit is contained in:
Jakob Ketterl 2021-03-03 22:10:19 +01:00
parent 03315d7960
commit 400ed3541d
2 changed files with 3 additions and 3 deletions

View File

@ -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())

View File

@ -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(