feat 添加健康检测
Some checks failed
Build image / build (push) Has been cancelled

This commit is contained in:
timerzz 2024-05-12 16:44:33 +08:00
parent 01ba6458fa
commit 4ce21e2602

View File

@ -44,6 +44,10 @@ func main() {
r := fiber.New() r := fiber.New()
r.Use(cors.New()) r.Use(cors.New())
r.Get("/health", func(ctx fiber.Ctx) error {
return nil
})
api := r.Group("/api/v1") api := r.Group("/api/v1")
server.NewWatcherController(watcherCtl).RegistryRouter(api) server.NewWatcherController(watcherCtl).RegistryRouter(api)