mirror of
https://github.com/yusing/godoxy.git
synced 2026-03-31 22:53:24 +02:00
17 lines
308 B
Go
17 lines
308 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().Error(); err != nil {
|
|
U.HandleErr(w, r, err)
|
|
return
|
|
}
|
|
w.WriteHeader(http.StatusOK)
|
|
}
|