summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--http/rest/registrationHandler.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/http/rest/registrationHandler.go b/http/rest/registrationHandler.go
index b38d62c..cd386a4 100644
--- a/http/rest/registrationHandler.go
+++ b/http/rest/registrationHandler.go
@@ -26,6 +26,10 @@ func HandleRegistration(handler *RegistrationHandler) http.Handler {
func HandleGetRegistrations(handler *RegistrationHandler) http.Handler {
getRegs := func(w http.ResponseWriter, r *http.Request) {
+ if r.Method != http.MethodGet {
+ w.WriteHeader(http.StatusMethodNotAllowed)
+ return
+ }
regs, err := handler.Service.GetUnconfirmedRegistrations()
if err != nil {
w.WriteHeader(http.StatusInternalServerError)