mirror of
https://github.com/yusing/godoxy.git
synced 2026-03-22 17:19:06 +01:00
17 lines
304 B
Go
17 lines
304 B
Go
package v1
|
|
|
|
import (
|
|
"net/http"
|
|
|
|
U "github.com/yusing/go-proxy/api/v1/utils"
|
|
"github.com/yusing/go-proxy/config"
|
|
)
|
|
|
|
func Reload(cfg *config.Config, w http.ResponseWriter, r *http.Request) {
|
|
if err := cfg.Reload(); err.IsNotNil() {
|
|
U.HandleErr(w, r, err)
|
|
return
|
|
}
|
|
w.WriteHeader(http.StatusOK)
|
|
}
|