mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-05-04 13:50:39 +00:00
API expose usefull General Repo settings settings (#11758)
* GeneralRepoSettings expose MirrorsDisabled, HTTPGitDisabled, MaxCreationLimit * Apply suggestions from code review Co-authored-by: proton <25139420+proton-ab@users.noreply.github.com> * lint Co-authored-by: proton <25139420+proton-ab@users.noreply.github.com>
This commit is contained in:
parent
1ac46186ff
commit
68a2af6d68
5 changed files with 74 additions and 0 deletions
|
@ -514,6 +514,7 @@ func RegisterRoutes(m *macaron.Macaron) {
|
|||
m.Post("/markdown/raw", misc.MarkdownRaw)
|
||||
m.Group("/settings", func() {
|
||||
m.Get("/allowed_reactions", misc.SettingGetsAllowedReactions)
|
||||
m.Get("/repository", misc.GetGeneralRepoSettings)
|
||||
})
|
||||
|
||||
// Notifications
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue