socketio_client_tool.go 616 B

12345678910111213141516171819
  1. //go:build socketio_client_tool
  2. // +build socketio_client_tool
  3. package socketio_client_tool
  4. import (
  5. "github.com/gin-gonic/gin"
  6. "io/fs"
  7. "net/http"
  8. "pms-api-go/web"
  9. )
  10. /* 20230419 pms 删除 =======================================================================================================
  11. func Enable(router *gin.Engine) {
  12. socketIOToolRoot, _ := fs.Sub(web.SocketIOClientTool, "www/socketio-client-tool")
  13. router.StaticFS("/socketio-client-tool", http.FS(socketIOToolRoot))
  14. }
  15. * ========================================================================================================================= */