Command does not require addr

This commit is contained in:
2021-12-19 22:15:54 +01:00
parent a06520025b
commit 46f7565820
3 changed files with 4 additions and 5 deletions

View File

@@ -4,7 +4,7 @@ from driver.views import SendCommand, Function, Cab, Emergency, Infra
urlpatterns = [
path('emergency', Emergency.as_view()),
path('infra', Infra.as_view()),
path('<int:address>/command', SendCommand.as_view()),
path('command', SendCommand.as_view()),
path('<int:address>/cab', Cab.as_view()),
path('<int:address>/function', Function.as_view()),
]