aboutsummaryrefslogtreecommitdiff
path: root/routes/api/v1/api.go
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2018-12-02 12:55:05 -0500
committerUnknwon <u@gogs.io>2018-12-02 12:55:05 -0500
commite1b3a250085195122c3b41b998504692f47fcb63 (patch)
tree40614fe982572c95f401af688c7d4d1617921ae8 /routes/api/v1/api.go
parent69c1cd3f381b19b988a6af51a8e38303f216b001 (diff)
api/repo: support edit repository issue tracker (gogs/go-gogs-client#94)
Diffstat (limited to 'routes/api/v1/api.go')
-rw-r--r--routes/api/v1/api.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/routes/api/v1/api.go b/routes/api/v1/api.go
index 3ac5ef98..2fb2ebb0 100644
--- a/routes/api/v1/api.go
+++ b/routes/api/v1/api.go
@@ -293,6 +293,8 @@ func RegisterRoutes(m *macaron.Macaron) {
Patch(reqRepoWriter(), bind(api.EditMilestoneOption{}), repo.EditMilestone).
Delete(reqRepoWriter(), repo.DeleteMilestone)
})
+
+ m.Patch("/issue-tracker", bind(api.EditIssueTrackerOption{}), repo.IssueTracker)
m.Post("/mirror-sync", repo.MirrorSync)
m.Get("/editorconfig/:filename", context.RepoRef(), repo.GetEditorconfig)
}, repoAssignment())