Skip to content

Commit 90f831d

Browse files
fix module
1 parent c7cddae commit 90f831d

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

routes/router.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,10 @@ func RegisterRoutes(router *mux.Router, metasploitController *controllers.Metasp
1616
}
1717
}).Methods("GET")
1818
}
19+
20+
func Alive(router *mux.Router, metasploitController *controllers.MetasploitController) {
21+
router.HandleFunc("/health-module", func(w http.ResponseWriter, r *http.Request) {
22+
w.WriteHeader(http.StatusOK)
23+
w.Write([]byte("OK"))
24+
}).Methods("GET")
25+
}

0 commit comments

Comments
 (0)