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}
</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())

View File

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