From 68a2af6d68bb54a704bf98a3ba0ceada4d7808b9 Mon Sep 17 00:00:00 2001 From: 6543 <6543@obermui.de> Date: Wed, 10 Jun 2020 14:05:46 +0200 Subject: 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> --- modules/structs/settings.go | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 modules/structs/settings.go (limited to 'modules/structs/settings.go') diff --git a/modules/structs/settings.go b/modules/structs/settings.go new file mode 100644 index 0000000000..dcd1b5cabd --- /dev/null +++ b/modules/structs/settings.go @@ -0,0 +1,11 @@ +// Copyright 2020 The Gitea Authors. All rights reserved. +// Use of this source code is governed by a MIT-style +// license that can be found in the LICENSE file. + +package structs + +// GeneralRepoSettings contains global repository settings exposed by API +type GeneralRepoSettings struct { + MirrorsDisabled bool `json:"mirrors_disabled"` + HTTPGitDisabled bool `json:"http_git_disabled"` +} -- cgit v1.2.3