mirror of
https://github.com/yusing/godoxy.git
synced 2026-03-18 07:13:50 +01:00
17 lines
301 B
Go
17 lines
301 B
Go
package v1
|
|
|
|
import (
|
|
"net/http"
|
|
|
|
U "github.com/yusing/go-proxy/internal/api/v1/utils"
|
|
"github.com/yusing/go-proxy/internal/config"
|
|
)
|
|
|
|
func Reload(w http.ResponseWriter, r *http.Request) {
|
|
if err := config.Reload(); err != nil {
|
|
U.HandleErr(w, r, err)
|
|
return
|
|
}
|
|
U.WriteBody(w, []byte("OK"))
|
|
}
|