diff --git a/Go/cmd/globeboard/app.go b/Go/cmd/globeboard/app.go index cc5934ef096b7cf09f18edd38b7b24ed631bf883..c07d94b7fdf0a11f604f8f63441bcaf56d5514e6 100644 --- a/Go/cmd/globeboard/app.go +++ b/Go/cmd/globeboard/app.go @@ -43,7 +43,7 @@ func main() { mux.HandleFunc(Endpoints.RegistrationsID, dashboard.RegistrationsIdHandler) mux.HandleFunc(Endpoints.Registrations, dashboard.RegistrationsHandler) mux.HandleFunc(Endpoints.Dashboards, dashboard.DashboardsHandler) - mux.HandleFunc(Endpoints.NotificationsID, dashboard.NotificationsHandler) + mux.HandleFunc(Endpoints.NotificationsID, dashboard.NotificationsIdHandler) mux.HandleFunc(Endpoints.Notifications, dashboard.NotificationsHandler) mux.HandleFunc(Endpoints.Status, dashboard.StatusHandler) diff --git a/Go/internal/handlers/endpoint/dashboard/notifications_id_handler.go b/Go/internal/handlers/endpoint/dashboard/notifications_id_handler.go new file mode 100644 index 0000000000000000000000000000000000000000..f059363c096bd6106d9b9d00679ec0be6942b4da --- /dev/null +++ b/Go/internal/handlers/endpoint/dashboard/notifications_id_handler.go @@ -0,0 +1,22 @@ +// Package dashboard provides handlers for dashboard-related endpoints. +package dashboard + +import ( + "net/http" +) + +// NotificationsIdHandler handles requests to retrieve readership dashboard for a specific language. +func NotificationsIdHandler(w http.ResponseWriter, r *http.Request) { + switch r.Method { + case http.MethodGet: + handleNotifGetAllRequest(w, r) + default: + http.Error(w, "REST Method: "+r.Method+" not supported. Currently no methods are supported.", http.StatusNotImplemented) + return + } +} + +// handleGetRequest handles GET requests to retrieve readership dashboard for a specific language. +func handleNotifGetAllRequest(w http.ResponseWriter, r *http.Request) { + //TODO::Complete HTTP Method Requests +}