LunarInfantry/Assets/LeaderboardCreator/Scripts/Utils/ConstantVariables.cs
2026-01-02 01:31:54 -08:00

22 lines
No EOL
855 B
C#
Executable file

using Dan.Enums;
namespace Dan
{
internal static class ConstantVariables
{
internal const string GUID_KEY = "LEADERBOARD_CREATOR___LOCAL_GUID";
internal static string GetServerURL(Routes route = Routes.None, string extra = "")
{
return SERVER_URL + (route == Routes.Authorize ? "/authorize" :
route == Routes.Get ? "/get" :
route == Routes.Upload ? "/entry/upload" :
route == Routes.UpdateUsername ? "/entry/update-username" :
route == Routes.DeleteEntry ? "/entry/delete" :
route == Routes.GetPersonalEntry ? "/entry/get" :
route == Routes.GetEntryCount ? "/entry/count" : "/") + extra;
}
private const string SERVER_URL = "https://lcv2-server.danqzq.games";
}
}