瀏覽代碼

add check config

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