mirror of
https://github.com/osukey/osukey.git
synced 2025-05-29 09:27:18 +09:00
fix: edit endpointUrl
This commit is contained in:
parent
c92f67f30b
commit
0943a41f59
@ -3,9 +3,9 @@
|
|||||||
|
|
||||||
namespace osu.Game.Online.MisskeyAPI
|
namespace osu.Game.Online.MisskeyAPI
|
||||||
{
|
{
|
||||||
public class DefaultEndpointConfigration : EndpointConfiguration
|
public class DevelopmentEndpointConfigration : EndpointConfiguration
|
||||||
{
|
{
|
||||||
public DefaultEndpointConfigration()
|
public DevelopmentEndpointConfigration()
|
||||||
{
|
{
|
||||||
APIEndpointUrl = "https://simkey.net";
|
APIEndpointUrl = "https://simkey.net";
|
||||||
}
|
}
|
13
osu.Game/Online/MisskeyAPI/ProductionEndpointConfigration.cs
Normal file
13
osu.Game/Online/MisskeyAPI/ProductionEndpointConfigration.cs
Normal 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";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -100,7 +100,7 @@ namespace osu.Game
|
|||||||
UseDevelopmentServer ? new DevelopmentEndpointConfiguration() : new ProductionEndpointConfiguration();
|
UseDevelopmentServer ? new DevelopmentEndpointConfiguration() : new ProductionEndpointConfiguration();
|
||||||
|
|
||||||
internal Online.MisskeyAPI.EndpointConfiguration CreateMisskeyEndpoints() =>
|
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();
|
public virtual Version AssemblyVersion => Assembly.GetEntryAssembly()?.GetName().Version ?? new Version();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user