Files
MeWeb/src/MeWeb.Shared/Endpoints.cs
T

37 lines
1.1 KiB
C#
Raw Normal View History

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
{
public const string GET_Page = "/";
public const string GET_Platform = "/download/{platform}";
public static string GET_M_Platform(string platform) => $"/download/{platform}";
}
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}";
}
}