Browse Source

add check config

lijian 2 years ago
parent
commit
720e0db7a4
1 changed files with 1 additions and 1 deletions
  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