From 7453fa48ee6b68312c209d46addc21972142baa2 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Mon, 12 Feb 2024 03:50:55 -0500 Subject: [PATCH] fix: typo --- api/routes_rest_api.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/routes_rest_api.go b/api/routes_rest_api.go index 9f66163..bbc63d3 100644 --- a/api/routes_rest_api.go +++ b/api/routes_rest_api.go @@ -164,7 +164,7 @@ func (r restApi) handlerGetTree(w http.ResponseWriter, request *http.Request) { r.respond(w, http.StatusOK, treeResponse) } -func (r restApi) handleeGetIssueComments(w http.ResponseWriter, request *http.Request) { +func (r restApi) handleGetIssueComments(w http.ResponseWriter, request *http.Request) { vars := mux.Vars(request) owner := vars["owner"] repo := vars["repo"] @@ -302,7 +302,7 @@ func setupRestRoutes(params RouteParams) { r.HandleFunc("/repos/{owner}/{repo}/git/trees/{tree_sha}", restApi.handlerGetTree).Methods("GET") // Comment routes - r.HandleFunc("/repos/{owner}/{repo}/issues/{issue_number}/comments", restApi.handleeGetIssueComments).Methods("GET") + r.HandleFunc("/repos/{owner}/{repo}/issues/{issue_number}/comments", restApi.handleGetIssueComments).Methods("GET") r.HandleFunc("/repos/{owner}/{repo}/issues/{issue_number}/comments", restApi.handlerCreateIssueComment).Methods("POST") r.HandleFunc("/repos/{owner}/{repo}/issues/{issue_number}/comments/{comment_id}", restApi.handlerUpdateIssueComment).Methods("PATCH") }