2022-09-26 04:05:23 +03:00
|
|
|
using System.Collections.Immutable;
|
|
|
|
|
2022-10-30 19:48:24 +03:00
|
|
|
namespace CodeLiturgy.Views.Utils
|
2022-09-26 04:05:23 +03:00
|
|
|
{
|
|
|
|
internal static class Routes
|
|
|
|
{
|
|
|
|
public const string DefaultCultureName = "en-gb";
|
|
|
|
|
2022-10-27 20:13:02 +03:00
|
|
|
#region View Data Keys
|
2022-09-26 04:05:23 +03:00
|
|
|
|
2022-10-27 20:13:02 +03:00
|
|
|
internal const string FooterMenuViewDataId = "m1";
|
|
|
|
internal const string UserViewDataId = "uvd";
|
2022-09-26 04:05:23 +03:00
|
|
|
internal const string HeaderMenuId = "m2";
|
2022-10-27 20:13:02 +03:00
|
|
|
internal const string LanguageViewStorage = "i81";
|
|
|
|
internal const string IpViewStorage = "ip";
|
|
|
|
internal const string AgentViewStorage = "ag2";
|
2022-09-26 04:05:23 +03:00
|
|
|
|
2022-10-27 20:13:02 +03:00
|
|
|
|
|
|
|
#endregion View Data Keys
|
2022-09-26 04:05:23 +03:00
|
|
|
|
2022-10-27 20:13:02 +03:00
|
|
|
|
2022-09-26 04:05:23 +03:00
|
|
|
internal const string RootKeyName = "root";
|
|
|
|
internal const string RootLocation = "/";
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-10-27 20:13:02 +03:00
|
|
|
internal const string RootAuthRoute = "/auth";
|
|
|
|
internal const string RootAuthKeyName = "auth";
|
|
|
|
|
|
|
|
internal const string AuthLoginRoute = $"{RootAuthRoute}/login";
|
|
|
|
internal const string AuthLoginKeyName = "login";
|
|
|
|
|
|
|
|
internal const string AuthSignupRoute = $"{RootAuthRoute}/signup";
|
|
|
|
internal const string AuthSignupKeyName = "signup";
|
|
|
|
|
2022-09-26 04:05:23 +03:00
|
|
|
|
|
|
|
internal const string RolesLocation = $"{SystemRouteLocation}/roles";
|
2022-10-27 20:13:02 +03:00
|
|
|
internal const string RolesKeyName = "roles";
|
|
|
|
|
2022-09-26 04:05:23 +03:00
|
|
|
internal const string ApplicationUsersLocation = $"{SystemRouteLocation}/users";
|
2022-10-27 20:13:02 +03:00
|
|
|
internal const string ApplicationUsersKeyName = "app_users";
|
|
|
|
|
2022-09-26 04:05:23 +03:00
|
|
|
internal const string LogsLocation = $"{SystemRouteLocation}/logs";
|
2022-10-27 20:13:02 +03:00
|
|
|
internal const string LogsKeyName = "logs";
|
|
|
|
|
2022-09-26 04:05:23 +03:00
|
|
|
internal const string SettingsRouteLocation = $"{SystemRouteLocation}/settings";
|
2022-10-27 20:13:02 +03:00
|
|
|
internal const string SettingsKeyName = "settings";
|
2022-09-26 04:05:23 +03:00
|
|
|
|
|
|
|
internal const string SystemRouteLocation = $"/system";
|
2022-10-27 20:13:02 +03:00
|
|
|
internal const string SystemKeyName = "system";
|
|
|
|
|
2022-09-26 04:05:23 +03:00
|
|
|
|
2022-10-27 20:13:02 +03:00
|
|
|
internal const string AuthLogoutRoute = "/auth/logout";
|
2022-11-17 00:17:44 +03:00
|
|
|
internal const string AuthAccountRoute = "/auth/account";
|
|
|
|
internal const string AuthAccountKeyName = "account";
|
|
|
|
|
2022-10-27 20:13:02 +03:00
|
|
|
// Account
|
2022-11-17 00:17:44 +03:00
|
|
|
|
2022-10-27 20:13:02 +03:00
|
|
|
internal const string ChangePasswordKeyName = "changepwd";
|
2022-11-17 00:17:44 +03:00
|
|
|
internal const string ChangePasswordRouteLocation = $"{AuthAccountRoute}/change";
|
2022-09-26 04:05:23 +03:00
|
|
|
|
|
|
|
}
|
|
|
|
}
|