Node endpoints with container handling

This commit is contained in:
2026-02-03 21:09:41 +01:00
parent c28a54bf33
commit b8761de020
6 changed files with 125 additions and 2 deletions

View File

@@ -5,6 +5,7 @@ import (
"net/http"
"os"
"simple-cluster-node/health"
"simple-cluster-node/node"
"github.com/google/uuid"
"github.com/gorilla/mux"
@@ -14,7 +15,9 @@ import (
func SetupRouter() *mux.Router {
r := mux.NewRouter()
r.Use(identifyRequest, corsCheck, logRequest)
r.HandleFunc("/health", health.Handle).Methods("GET", "OPTIONS")
r.HandleFunc("/node/info", node.HandleInfo).Methods("GET", "OPTIONS")
/*
r.HandleFunc("/album", handler.GetAlbums).Methods("GET", "OPTIONS")