Skip to content
Snippets Groups Projects
Commit c2f7238a authored by Torgrim's avatar Torgrim
Browse files

Started Development on Notifications Endpoint

parent fee63631
No related branches found
No related tags found
No related merge requests found
...@@ -43,7 +43,7 @@ func main() { ...@@ -43,7 +43,7 @@ func main() {
mux.HandleFunc(Endpoints.RegistrationsID, dashboard.RegistrationsIdHandler) mux.HandleFunc(Endpoints.RegistrationsID, dashboard.RegistrationsIdHandler)
mux.HandleFunc(Endpoints.Registrations, dashboard.RegistrationsHandler) mux.HandleFunc(Endpoints.Registrations, dashboard.RegistrationsHandler)
mux.HandleFunc(Endpoints.Dashboards, dashboard.DashboardsHandler) 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.Notifications, dashboard.NotificationsHandler)
mux.HandleFunc(Endpoints.Status, dashboard.StatusHandler) mux.HandleFunc(Endpoints.Status, dashboard.StatusHandler)
......
// 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
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment