fix: edit endpointUrl

This commit is contained in:
sim1222 2022-12-22 23:42:12 +09:00
parent c92f67f30b
commit 0943a41f59
No known key found for this signature in database
GPG Key ID: 83C11C5D51F42825
3 changed files with 16 additions and 3 deletions

View File

@ -3,9 +3,9 @@
namespace osu.Game.Online.MisskeyAPI
{
public class DefaultEndpointConfigration : EndpointConfiguration
public class DevelopmentEndpointConfigration : EndpointConfiguration
{
public DefaultEndpointConfigration()
public DevelopmentEndpointConfigration()
{
APIEndpointUrl = "https://simkey.net";
}

View File

@ -0,0 +1,13 @@
// Copyright (c) sim1222 <kokt@sim1222.com>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
namespace osu.Game.Online.MisskeyAPI
{
public class ProductionEndpointConfigration : EndpointConfiguration
{
public ProductionEndpointConfigration()
{
APIEndpointUrl = "https://misskey.io";
}
}
}

View File

@ -100,7 +100,7 @@ namespace osu.Game
UseDevelopmentServer ? new DevelopmentEndpointConfiguration() : new ProductionEndpointConfiguration();
internal Online.MisskeyAPI.EndpointConfiguration CreateMisskeyEndpoints() =>
new osu.Game.Online.MisskeyAPI.DefaultEndpointConfigration();
UseDevelopmentServer ? new osu.Game.Online.MisskeyAPI.DevelopmentEndpointConfigration() : new osu.Game.Online.MisskeyAPI.ProductionEndpointConfigration();
public virtual Version AssemblyVersion => Assembly.GetEntryAssembly()?.GetName().Version ?? new Version();