mirror of
https://github.com/gfleury/go-bitbucket-v1.git
synced 2025-07-04 04:52:53 -05:00
Adding search endpoint SearchCode
This commit is contained in:
@ -794,3 +794,7 @@ func GetCommitsStats(w http.ResponseWriter, r *http.Request) {
|
||||
func SetCommitStatus(w http.ResponseWriter, r *http.Request) {
|
||||
HandleRequest(w, r)
|
||||
}
|
||||
|
||||
func SearchCode(w http.ResponseWriter, r *http.Request) {
|
||||
HandleRequest(w, r)
|
||||
}
|
||||
|
@ -1419,4 +1419,11 @@ var routes = Routes{
|
||||
"/rest/build-status/1.0/commits/{commitId}",
|
||||
SetCommitStatus,
|
||||
},
|
||||
|
||||
Route{
|
||||
"SearchCode",
|
||||
strings.ToUpper("Post"),
|
||||
"/rest/search/latest/search",
|
||||
SearchCode,
|
||||
},
|
||||
}
|
||||
|
Reference in New Issue
Block a user