Fix(restapi): debug missing mountpoints

This commit is contained in:
xjasonlyu
2022-04-04 22:05:47 +08:00
parent fd8223e4d0
commit e4801c3989
3 changed files with 24 additions and 6 deletions

View File

@@ -16,6 +16,10 @@ import (
const defaultInterval = 1000
func init() {
registerMountPoint("/connections", connectionRouter())
}
func connectionRouter() http.Handler {
r := chi.NewRouter()
r.Get("/", getConnections)