Skip to content

Commit dffb634

Browse files
committed
simple api path won
1 parent fca9bc1 commit dffb634

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

routers/api/v1/api.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1204,7 +1204,7 @@ func Routes() *web.Router {
12041204
m.Patch("", bind(api.EditBranchProtectionOption{}), mustNotBeArchived, repo.EditBranchProtection)
12051205
m.Delete("", repo.DeleteBranchProtection)
12061206
})
1207-
m.Post("/priority/move", bind(api.UpdateBranchProtectionPriories{}), mustNotBeArchived, repo.UpdateBranchProtectionPriories)
1207+
m.Post("/priority", bind(api.UpdateBranchProtectionPriories{}), mustNotBeArchived, repo.UpdateBranchProtectionPriories)
12081208
}, reqToken(), reqAdmin())
12091209
m.Group("/tags", func() {
12101210
m.Get("", repo.ListTags)

routers/api/v1/repo/branch.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1092,7 +1092,7 @@ func DeleteBranchProtection(ctx *context.APIContext) {
10921092

10931093
// UpdateBranchProtectionPriories updates the priorities of branch protections for a repo
10941094
func UpdateBranchProtectionPriories(ctx *context.APIContext) {
1095-
// swagger:operation POST /repos/{owner}/{repo}/branch_protections/priority/move repository repoUpdateBranchProtectionPriories
1095+
// swagger:operation POST /repos/{owner}/{repo}/branch_protections/priority repository repoUpdateBranchProtectionPriories
10961096
// ---
10971097
// summary: Update the priorities of branch protections for a repository.
10981098
// consumes:

templates/swagger/v1_json.tmpl

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)