From 9ab2ee4fc920940e4ae9f43e55a68fcb1fe2c9e5 Mon Sep 17 00:00:00 2001 From: Xe Iaso Date: Mon, 13 May 2024 11:03:40 -0400 Subject: cmd/mi: move import to the hidden routes Signed-off-by: Xe Iaso --- cmd/mi/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cmd/mi/main.go') diff --git a/cmd/mi/main.go b/cmd/mi/main.go index 069abfc..b7ed2ce 100644 --- a/cmd/mi/main.go +++ b/cmd/mi/main.go @@ -45,7 +45,7 @@ func main() { mux.Handle(pb.SwitchTrackerPathPrefix, pb.NewSwitchTrackerServer(NewSwitchTracker(db))) i := &Importer{db: db} - i.Mount(mux) + i.Mount(http.DefaultServeMux) mux.HandleFunc("/healthz", func(w http.ResponseWriter, r *http.Request) { if err := db.Exec("select 1+1").Error; err != nil { -- cgit v1.2.3