lijian пре 2 година
родитељ
комит
720e0db7a4
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      services/apiprovider/router.go

+ 1 - 1
services/apiprovider/router.go

@@ -54,7 +54,7 @@ func route(m *martini.ClassicMartini) {
 
 		// send a command to device
 		r.Post("/devices/:identifier/commands",
-			ApplicationAuthOnDeviceIdentifer, CheckDeviceOnline,
+			ApplicationAuthOnDeviceIdentifer, CheckDeviceOnline, CheckProductConfig,
 			SendCommandToDevice)
 
 		// and a rule to device