mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	Add /milestones endpoint (#8733)
Create a /milestones endpoint which basically serves as a dashboard view for milestones, very similar to the /issues or /pulls page. Closes #8232
This commit is contained in:
		@@ -21,6 +21,7 @@ var Service struct {
 | 
			
		||||
	DisableRegistration                     bool
 | 
			
		||||
	AllowOnlyExternalRegistration           bool
 | 
			
		||||
	ShowRegistrationButton                  bool
 | 
			
		||||
	ShowMilestonesDashboardPage             bool
 | 
			
		||||
	RequireSignInView                       bool
 | 
			
		||||
	EnableNotifyMail                        bool
 | 
			
		||||
	EnableBasicAuth                         bool
 | 
			
		||||
@@ -62,6 +63,7 @@ func newService() {
 | 
			
		||||
	Service.AllowOnlyExternalRegistration = sec.Key("ALLOW_ONLY_EXTERNAL_REGISTRATION").MustBool()
 | 
			
		||||
	Service.EmailDomainWhitelist = sec.Key("EMAIL_DOMAIN_WHITELIST").Strings(",")
 | 
			
		||||
	Service.ShowRegistrationButton = sec.Key("SHOW_REGISTRATION_BUTTON").MustBool(!(Service.DisableRegistration || Service.AllowOnlyExternalRegistration))
 | 
			
		||||
	Service.ShowMilestonesDashboardPage = sec.Key("SHOW_MILESTONES_DASHBOARD_PAGE").MustBool(true)
 | 
			
		||||
	Service.RequireSignInView = sec.Key("REQUIRE_SIGNIN_VIEW").MustBool()
 | 
			
		||||
	Service.EnableBasicAuth = sec.Key("ENABLE_BASIC_AUTHENTICATION").MustBool(true)
 | 
			
		||||
	Service.EnableReverseProxyAuth = sec.Key("ENABLE_REVERSE_PROXY_AUTHENTICATION").MustBool()
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user