Compare commits

..

2 Commits

Author SHA1 Message Date
95bc4d8db3 Merge branch 'master' into kd-live 2023-06-22 20:39:55 +09:00
3d3020f827 폴더 다시 조정 2023-06-22 20:39:38 +09:00

View File

@ -66,10 +66,10 @@ func (h *houstonHandler) RegisterHandlers(serveMux *http.ServeMux, prefix string
serveMux.Handle(prefix, h) serveMux.Handle(prefix, h)
fsx := http.FileServer(http.Dir(h.deployPath)) fsx := http.FileServer(http.Dir(h.deployPath))
serveMux.Handle(fmt.Sprintf("%s/%s/", prefix, sub_folder_name_deploys), http.StripPrefix(fmt.Sprintf("%s/deploys/", prefix), fsx)) serveMux.Handle(fmt.Sprintf("%s/%s/", prefix, sub_folder_name_deploys), http.StripPrefix(fmt.Sprintf("%s/%s/", prefix, sub_folder_name_deploys), fsx))
ufsx := http.FileServer(http.Dir(h.downloadPath)) ufsx := http.FileServer(http.Dir(h.downloadPath))
serveMux.Handle(fmt.Sprintf("%s/%s/", prefix, sub_folder_name_downloads), http.StripPrefix(fmt.Sprintf("%s/downloads/", prefix), ufsx)) serveMux.Handle(fmt.Sprintf("%s/%s/", prefix, sub_folder_name_downloads), http.StripPrefix(fmt.Sprintf("%s/%s/", prefix, sub_folder_name_downloads), ufsx))
serveMux.HandleFunc(fmt.Sprintf("%s/upload", prefix), func(w http.ResponseWriter, r *http.Request) { serveMux.HandleFunc(fmt.Sprintf("%s/upload", prefix), func(w http.ResponseWriter, r *http.Request) {
defer func() { defer func() {