dotnetkiteconnect icon indicating copy to clipboard operation
dotnetkiteconnect copied to clipboard

Convert Routes to use Constants

Open saivineeth100 opened this issue 8 months ago • 5 comments

Existing

private readonly Dictionary<string, string> _routes = new Dictionary<string, string>
{
    ["parameters"] = "/parameters",
    
}

Suggested Add to Constants.cs or Add new File Routes.cs

    public static class Routes
    {
        public const string Parameters = "/parameters";
        public static class Auth
        {
            public const string Token = "/session/token";
            public const string RefreshToken = "/session/refresh_token";
        }

    }

When using we can use

Post(Routes.Auth.Token, reqParams)

saivineeth100 avatar Jun 25 '24 10:06 saivineeth100