2eba8d6511
Signed-off-by: Evan Hazlett <ejhazlett@gmail.com>
13 lines
261 B
Go
13 lines
261 B
Go
package server
|
|
|
|
import (
|
|
"fmt"
|
|
"net/http"
|
|
)
|
|
|
|
func (s *Server) apiReload(w http.ResponseWriter, r *http.Request) {
|
|
if err := s.proxy.Reload(); err != nil {
|
|
http.Error(w, fmt.Sprintf("error reloading: %s", err), http.StatusInternalServerError)
|
|
return
|
|
}
|
|
}
|