@@ -41,6 +41,12 @@ public ApiResponse<ApiStatisticsResponse> GetStatistics(RequestContext context,
4141 } ;
4242 }
4343
44+ [ ApiV3Endpoint ( "announcements" ) , Authentication ( false ) , AllowDuringMaintenance ]
45+ [ DocSummary ( "Retrieves all current announcements." ) ]
46+ [ RateLimitSettings ( 300 , 60 , 240 , "announcements-api" ) ]
47+ public ApiResponse < List < ApiGameAnnouncementResponse > > GetAllAnnouncements ( RequestContext context , DataContext dataContext )
48+ => ApiGameAnnouncementResponse . FromOldList ( dataContext . Database . GetAnnouncements ( ) . ToArray ( ) , dataContext ) . ToList ( ) ;
49+
4450 [ ApiV3Endpoint ( "instance" ) , Authentication ( false ) , AllowDuringMaintenance ]
4551 [ ClientCacheResponse ( 3600 ) ] // One hour
4652 [ DocSummary ( "Retrieves various information and metadata about the Refresh instance." ) ]
@@ -72,6 +78,11 @@ public ApiResponse<ApiInstanceResponse> GetInstanceInformation(RequestContext co
7278 GrafanaDashboardUrl = integrationConfig . GrafanaDashboardUrl ,
7379 WebsiteLogoUrl = integrationConfig . WebsiteLogoUrl ,
7480 WebsiteDefaultTheme = integrationConfig . WebsiteDefaultTheme ,
81+ IsPresenceServerEnabled = integrationConfig . PresenceEnabled ,
82+ ServerStatusUrl = integrationConfig . ServerStatusUrl ,
83+
84+ NormalUserPermissions = ApiRolePermissionsResponse . FromOld ( gameConfig . NormalUserPermissions ) ,
85+ TrustedUserPermissions = ApiRolePermissionsResponse . FromOld ( gameConfig . TrustedUserPermissions ) ,
7586
7687 ContactInfo = new ApiContactInfoResponse
7788 {
0 commit comments