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") }