api: EditWiki implementation (#5860)

Co-authored-by: Joe Chen <jc@unknwon.io>
This commit is contained in:
Pavel M
2021-11-10 08:29:27 +03:00
committed by GitHub
parent 8938855b40
commit de3161155b
3 changed files with 28 additions and 1 deletions

View File

@@ -355,6 +355,7 @@ func RegisterRoutes(m *macaron.Macaron) {
}, reqRepoWriter())
m.Patch("/issue-tracker", reqRepoWriter(), bind(api.EditIssueTrackerOption{}), repo.IssueTracker)
m.Patch("/wiki", reqRepoWriter(), bind(api.EditWikiOption{}), repo.Wiki)
m.Post("/mirror-sync", reqRepoWriter(), repo.MirrorSync)
m.Get("/editorconfig/:filename", context.RepoRef(), repo.GetEditorconfig)
}, repoAssignment())