fix: typo
This commit is contained in:
parent
6ca3e8945c
commit
7453fa48ee
|
@ -164,7 +164,7 @@ func (r restApi) handlerGetTree(w http.ResponseWriter, request *http.Request) {
|
||||||
r.respond(w, http.StatusOK, treeResponse)
|
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)
|
vars := mux.Vars(request)
|
||||||
owner := vars["owner"]
|
owner := vars["owner"]
|
||||||
repo := vars["repo"]
|
repo := vars["repo"]
|
||||||
|
@ -302,7 +302,7 @@ func setupRestRoutes(params RouteParams) {
|
||||||
r.HandleFunc("/repos/{owner}/{repo}/git/trees/{tree_sha}", restApi.handlerGetTree).Methods("GET")
|
r.HandleFunc("/repos/{owner}/{repo}/git/trees/{tree_sha}", restApi.handlerGetTree).Methods("GET")
|
||||||
|
|
||||||
// Comment routes
|
// 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", 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/{issue_number}/comments/{comment_id}", restApi.handlerUpdateIssueComment).Methods("PATCH")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue