모듈 업데이트

This commit is contained in:
2024-07-29 17:50:33 +09:00
parent 3c96921703
commit 030fa658f5
3 changed files with 8 additions and 3 deletions

View File

@ -14,13 +14,14 @@ import (
"runtime/debug"
"strings"
"repositories.action2quare.com/ayo/gocommon"
"repositories.action2quare.com/ayo/gocommon/flagx"
"repositories.action2quare.com/ayo/gocommon/logger"
)
type HoustonServerWithHandler interface {
HoustonServer
RegisterHandlers(serveMux *http.ServeMux, prefix string) error
RegisterHandlers(serveMux gocommon.ServerMuxInterface, prefix string) error
}
type houstonHandler struct {
@ -45,7 +46,7 @@ func NewHoustonHandler() HoustonServerWithHandler {
}
}
func (h *houstonHandler) RegisterHandlers(serveMux *http.ServeMux, prefix string) error {
func (h *houstonHandler) RegisterHandlers(serveMux gocommon.ServerMuxInterface, prefix string) error {
config := loadServerConfig()
storagePath := config.StorageRoot
h.deployPath = path.Join(storagePath, sub_folder_name_deploys)