From 35ce1bff3496c67cda124aea3c36bc5b66b1e4e6 Mon Sep 17 00:00:00 2001 From: jackyzha0 Date: Sat, 9 May 2020 14:28:24 -0700 Subject: working mongo doc add --- api/api.go | 1 + 1 file changed, 1 insertion(+) (limited to 'api/api.go') diff --git a/api/api.go b/api/api.go index 1954496..eb6af4d 100644 --- a/api/api.go +++ b/api/api.go @@ -30,6 +30,7 @@ func Serve(port int) { // Define Mux Router r := mux.NewRouter() r.HandleFunc("/health", healthCheckFunc) + r.HandleFunc("/", insertFunc).Methods("POST") http.Handle("/", r) -- cgit v1.2.3