From 8640627536f180fa844a408357dbb8de58e44104 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Mon, 12 Feb 2024 04:41:31 -0500 Subject: [PATCH] fix: wrong comment update path --- api/routes_rest_api.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()