Add node management endpoints to handle listing and retrieving node details

This commit is contained in:
2025-10-02 22:51:41 +02:00
parent c30053e51c
commit da56456504
2 changed files with 94 additions and 4 deletions

View File

@@ -60,6 +60,15 @@ func SetupRouter(handler *Handler) *chi.Mux {
})
})
// Node management endpoints
r.Route("/nodes", func(r chi.Router) {
r.Get("/", handler.ListNodes()) // List all nodes
r.Route("/{name}", func(r chi.Router) {
r.Get("/", handler.GetNode())
})
})
// Instance management endpoints
r.Route("/instances", func(r chi.Router) {
r.Get("/", handler.ListInstances()) // List all instances