1
0
Fork 0
forked from forgejo/forgejo

Add repo mirror sync API endpoint (#1508)

* API: Add repo mirror sync

* Correct error message

* Change http status to 200
This commit is contained in:
Jonas 2017-04-19 13:09:49 +02:00 committed by Lunny Xiao
parent 2eeae84cbd
commit f995bcc87a
2 changed files with 13 additions and 0 deletions

View file

@ -402,6 +402,7 @@ func RegisterRoutes(m *macaron.Macaron) {
Patch(bind(api.EditReleaseOption{}), repo.EditRelease).
Delete(repo.DeleteRelease)
})
m.Post("/mirror-sync", repo.MirrorSync)
m.Get("/editorconfig/:filename", context.RepoRef(), repo.GetEditorconfig)
m.Group("/pulls", func() {
m.Combo("").Get(bind(api.ListPullRequestsOptions{}), repo.ListPullRequests).Post(reqRepoWriter(), bind(api.CreatePullRequestOption{}), repo.CreatePullRequest)