Node endpoints with container handling
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user