diff --git a/api/routes_rest_api.go b/api/routes_rest_api.go index bbc63d3..55dfcf4 100644 --- a/api/routes_rest_api.go +++ b/api/routes_rest_api.go @@ -304,7 +304,7 @@ func setupRestRoutes(params RouteParams) { // Comment routes 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") + r.HandleFunc("/repos/{owner}/{repo}/issues/comments/{comment_id}", restApi.handlerUpdateIssueComment).Methods("PATCH") } restRouter := r.PathPrefix("/api").Subrouter()