diff options
| author | Xe Iaso <me@xeiaso.net> | 2024-05-13 11:03:40 -0400 |
|---|---|---|
| committer | Xe Iaso <me@xeiaso.net> | 2024-05-13 11:03:45 -0400 |
| commit | 9ab2ee4fc920940e4ae9f43e55a68fcb1fe2c9e5 (patch) | |
| tree | ff967f5818b7470eba93fc754f404caf496e519f /cmd/mi/main.go | |
| parent | 14f6bc1739c5c990060e81aec9c6eb7a130f00ff (diff) | |
| download | x-9ab2ee4fc920940e4ae9f43e55a68fcb1fe2c9e5.tar.xz x-9ab2ee4fc920940e4ae9f43e55a68fcb1fe2c9e5.zip | |
cmd/mi: move import to the hidden routes
Signed-off-by: Xe Iaso <me@xeiaso.net>
Diffstat (limited to 'cmd/mi/main.go')
| -rw-r--r-- | cmd/mi/main.go | 2 |
1 files changed, 1 insertions, 1 deletions
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 { |
