mirror of
https://github.com/yusing/godoxy.git
synced 2025-05-20 12:42:34 +02:00
16 lines
338 B
Go
16 lines
338 B
Go
package v1
|
|
|
|
import (
|
|
"net/http"
|
|
|
|
U "github.com/yusing/go-proxy/internal/api/v1/utils"
|
|
config "github.com/yusing/go-proxy/internal/config/types"
|
|
)
|
|
|
|
func Reload(cfg config.ConfigInstance, w http.ResponseWriter, r *http.Request) {
|
|
if err := cfg.Reload(); err != nil {
|
|
U.HandleErr(w, r, err)
|
|
return
|
|
}
|
|
U.WriteBody(w, []byte("OK"))
|
|
}
|