diff --git a/MareSynchronosAPI/Dto/Account/RegisterReplyV2Dto.cs b/MareSynchronosAPI/Dto/Account/RegisterReplyV2Dto.cs new file mode 100644 index 0000000..59f7fe5 --- /dev/null +++ b/MareSynchronosAPI/Dto/Account/RegisterReplyV2Dto.cs @@ -0,0 +1,11 @@ +using MessagePack; + +namespace MareSynchronos.API.Dto.Account; + +[MessagePackObject(keyAsPropertyName: true)] +public record RegisterReplyV2Dto +{ + public bool Success { get; set; } = false; + public string ErrorMessage { get; set; } = string.Empty; + public string UID { get; set; } = string.Empty; +} \ No newline at end of file diff --git a/MareSynchronosAPI/Routes/MareAuth.cs b/MareSynchronosAPI/Routes/MareAuth.cs index 3bbb304..2bef31e 100644 --- a/MareSynchronosAPI/Routes/MareAuth.cs +++ b/MareSynchronosAPI/Routes/MareAuth.cs @@ -6,7 +6,9 @@ public class MareAuth public const string Auth_CreateIdent = "createWithIdent"; public const string Auth_CreateIdentV2 = "createWithIdentV2"; public const string Auth_Register = "registerNewKey"; + public const string Auth_RegisterV2 = "registerNewKeyV2"; public static Uri AuthFullPath(Uri baseUri) => new Uri(baseUri, Auth + "/" + Auth_CreateIdent); public static Uri AuthV2FullPath(Uri baseUri) => new Uri(baseUri, Auth + "/" + Auth_CreateIdentV2); public static Uri AuthRegisterFullPath(Uri baseUri) => new Uri(baseUri, Auth + "/" + Auth_Register); + public static Uri AuthRegisterV2FullPath(Uri baseUri) => new Uri(baseUri, Auth + "/" + Auth_RegisterV2); } \ No newline at end of file