add redis status check

This commit is contained in:
pakintada@gmail.com 2024-02-22 15:46:36 +07:00
parent f7f1535695
commit 89ce1f361c
2 changed files with 43 additions and 1 deletions

View file

@ -139,7 +139,7 @@ func (s *Server) createHandler() {
ur := routers.NewUserRouter(s.taoLogger, userService)
ur.Route(r)
fmt.Println("routers", r.Routes())
// fmt.Println("routers", r.Routes())
})
@ -156,6 +156,9 @@ func (s *Server) createHandler() {
})
})
nscr := routers.NewServiceCheckRouter(s.cache_db)
nscr.Route(r)
// routers.NewToppingRouter(s.data, s.taoLogger).Route(r)
r.NotFound(func(w http.ResponseWriter, r *http.Request) {