2017-07-30 02:54:43 +00:00
|
|
|
package server
|
|
|
|
|
|
|
|
import (
|
|
|
|
"fmt"
|
|
|
|
"net/http"
|
|
|
|
)
|
|
|
|
|
2017-08-14 12:39:37 +00:00
|
|
|
func (s *Server) apiReload(w http.ResponseWriter, r *http.Request) {
|
2017-07-30 02:54:43 +00:00
|
|
|
if err := s.proxy.Reload(); err != nil {
|
|
|
|
http.Error(w, fmt.Sprintf("error reloading: %s", err), http.StatusInternalServerError)
|
|
|
|
return
|
|
|
|
}
|
|
|
|
}
|