2026-10-15 01:14:44 +02:00
|
|
|
namespace MeWeb.Shared;
|
|
|
|
|
|
|
|
|
|
public static class Endpoints
|
|
|
|
|
{
|
|
|
|
|
public const string Host = "meweb.arasaka.software";
|
|
|
|
|
public const string HostV4 = "v4.meweb.arasaka.software";
|
|
|
|
|
public const string HostV6 = "v6.meweb.arasaka.software";
|
|
|
|
|
|
|
|
|
|
public static string Base => $"https://{Host}";
|
|
|
|
|
public static string BaseV4 => $"https://{HostV4}";
|
|
|
|
|
public static string BaseV6 => $"https://{HostV6}";
|
|
|
|
|
|
|
|
|
|
public const string Api = "/api";
|
|
|
|
|
|
|
|
|
|
public static class Server
|
|
|
|
|
{
|
|
|
|
|
public const string GET_Info = $"{Api}/info";
|
|
|
|
|
public const string GET_Ip = $"{Api}/ip";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static class Downloads
|
|
|
|
|
{
|
2026-10-15 04:39:03 +02:00
|
|
|
public const string GET_Page = "/";
|
2026-10-15 01:14:44 +02:00
|
|
|
public const string GET_Platform = "/download/{platform}";
|
|
|
|
|
|
|
|
|
|
public static string GET_M_Platform(string platform) => $"/download/{platform}";
|
|
|
|
|
}
|
2026-10-15 04:39:03 +02:00
|
|
|
|
|
|
|
|
public static class Gitea
|
|
|
|
|
{
|
|
|
|
|
public const string Origin = "https://git.thepra.dev";
|
|
|
|
|
public const string Repository = "Arasaka/MeWeb";
|
|
|
|
|
public const string GET_Releases = $"{Origin}/api/v1/repos/{Repository}/releases?limit=10";
|
|
|
|
|
public const string Releases = $"{Origin}/{Repository}/releases";
|
|
|
|
|
public const string Source = $"{Origin}/{Repository}";
|
|
|
|
|
}
|
2026-10-15 01:14:44 +02:00
|
|
|
}
|