Skip to content

Commit

Permalink
Update endpoints to final production endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
peppy committed Jan 30, 2024
1 parent f5e7697 commit d895a91
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 29 deletions.
16 changes: 7 additions & 9 deletions osu.Game/Online/EndpointConfiguration.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.

#nullable disable

namespace osu.Game.Online
{
/// <summary>
Expand All @@ -13,36 +11,36 @@ public class EndpointConfiguration
/// <summary>
/// The base URL for the website.
/// </summary>
public string WebsiteRootUrl { get; set; }
public string WebsiteRootUrl { get; set; } = string.Empty;

/// <summary>
/// The endpoint for the main (osu-web) API.
/// </summary>
public string APIEndpointUrl { get; set; }
public string APIEndpointUrl { get; set; } = string.Empty;

/// <summary>
/// The OAuth client secret.
/// </summary>
public string APIClientSecret { get; set; }
public string APIClientSecret { get; set; } = string.Empty;

/// <summary>
/// The OAuth client ID.
/// </summary>
public string APIClientID { get; set; }
public string APIClientID { get; set; } = string.Empty;

/// <summary>
/// The endpoint for the SignalR spectator server.
/// </summary>
public string SpectatorEndpointUrl { get; set; }
public string SpectatorEndpointUrl { get; set; } = string.Empty;

/// <summary>
/// The endpoint for the SignalR multiplayer server.
/// </summary>
public string MultiplayerEndpointUrl { get; set; }
public string MultiplayerEndpointUrl { get; set; } = string.Empty;

/// <summary>
/// The endpoint for the SignalR metadata server.
/// </summary>
public string MetadataEndpointUrl { get; set; }
public string MetadataEndpointUrl { get; set; } = string.Empty;
}
}
19 changes: 0 additions & 19 deletions osu.Game/Online/ExperimentalEndpointConfiguration.cs

This file was deleted.

2 changes: 1 addition & 1 deletion osu.Game/OsuGameBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ public partial class OsuGameBase : Framework.Game, ICanAcceptFiles, IBeatSyncPro
public virtual bool UseDevelopmentServer => DebugUtils.IsDebugBuild;

public virtual EndpointConfiguration CreateEndpoints() =>
UseDevelopmentServer ? new DevelopmentEndpointConfiguration() : new ExperimentalEndpointConfiguration();
UseDevelopmentServer ? new DevelopmentEndpointConfiguration() : new ProductionEndpointConfiguration();

public virtual Version AssemblyVersion => Assembly.GetEntryAssembly()?.GetName().Version ?? new Version();

Expand Down

0 comments on commit d895a91

Please sign in to comment.