changed the naming convention for all handling objects and methods to have unified way

This commit is contained in:
Pascal Fischer
2023-02-28 15:27:43 +01:00
parent f1f90807e4
commit 9d7b515b26
3 changed files with 8 additions and 8 deletions

View File

@@ -222,8 +222,8 @@ func (h *NameserversHandler) PatchNameserverGroup(w http.ResponseWriter, r *http
util.WriteJSONObject(w, &resp)
}
// DeleteNameserverGroupHandler handles nameserver group deletion request
func (h *NameserversHandler) DeleteNameserverGroupHandler(w http.ResponseWriter, r *http.Request) {
// DeleteNameserverGroup handles nameserver group deletion request
func (h *NameserversHandler) DeleteNameserverGroup(w http.ResponseWriter, r *http.Request) {
claims := h.claimsExtractor.FromRequestContext(r)
account, user, err := h.accountManager.GetAccountFromToken(claims)
if err != nil {
@@ -246,8 +246,8 @@ func (h *NameserversHandler) DeleteNameserverGroupHandler(w http.ResponseWriter,
util.WriteJSONObject(w, "")
}
// GetNameserverGroupHandler handles a nameserver group Get request identified by ID
func (h *NameserversHandler) GetNameserverGroupHandler(w http.ResponseWriter, r *http.Request) {
// GetNameserverGroup handles a nameserver group Get request identified by ID
func (h *NameserversHandler) GetNameserverGroup(w http.ResponseWriter, r *http.Request) {
claims := h.claimsExtractor.FromRequestContext(r)
account, _, err := h.accountManager.GetAccountFromToken(claims)
if err != nil {