liuxiaolong
2020-07-13 6260cd81f96790acf7805684d901611d7524bb09
router/router.go
@@ -50,6 +50,7 @@
    fStackC := new(controllers.FileStackController)
   cameraRuleController := new (controllers.CameraRuleController)
   rtc := new(controllers.RuleTemplateController)
   voiceC := new(controllers.VoiceController)
   urlPrefix := "/data/api-v" // wp 添加 路径 前缀
@@ -368,6 +369,11 @@
        fStackApi.POST("/changeEnable", fStackC.ChangeEnable)
        fStackApi.DELETE("/delete/:id", fStackC.Delete)
    }
   voiceApi := r.Group(urlPrefix + "/voice")
   {
      voiceApi.GET("/findAll", voiceC.FindAll)
   }
   // 文件 上传
   r.Static("static", "./static") // 静态文件