fix: typo

This commit is contained in:
Derrick Hammer 2024-02-12 03:50:55 -05:00
parent 6ca3e8945c
commit 7453fa48ee
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 2 additions and 2 deletions

View File

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