|
@@ -28,6 +28,7 @@ func serverHandlers(r *mux.Router) {
|
|
"/api/server/health",
|
|
"/api/server/health",
|
|
func(w http.ResponseWriter, _ *http.Request) {
|
|
func(w http.ResponseWriter, _ *http.Request) {
|
|
_ = syscall.Kill(syscall.Getpid(), syscall.SIGINT)
|
|
_ = syscall.Kill(syscall.Getpid(), syscall.SIGINT)
|
|
|
|
+ w.WriteHeader(http.StatusOK)
|
|
_, _ = w.Write([]byte("Shutting down server..."))
|
|
_, _ = w.Write([]byte("Shutting down server..."))
|
|
},
|
|
},
|
|
).Methods(http.MethodDelete)
|
|
).Methods(http.MethodDelete)
|