Add /auth/registerNewKey

This commit is contained in:
Loporrit
2023-09-01 15:02:24 +00:00
parent 820a432ad9
commit 39b9e55efb
2 changed files with 14 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
using MessagePack;
namespace MareSynchronos.API.Dto.Account;
[MessagePackObject(keyAsPropertyName: true)]
public record RegisterReplyDto
{
public bool Success { get; set; } = false;
public string ErrorMessage { get; set; } = string.Empty;
public string UID { get; set; } = string.Empty;
public string SecretKey { get; set; } = string.Empty;
}

View File

@@ -5,5 +5,7 @@ public class MareAuth
public const string Auth = "/auth"; public const string Auth = "/auth";
public const string Auth_CreateIdent = "createWithIdent"; public const string Auth_CreateIdent = "createWithIdent";
public const string Auth_Register = "registerNewKey";
public static Uri AuthFullPath(Uri baseUri) => new Uri(baseUri, Auth + "/" + Auth_CreateIdent); public static Uri AuthFullPath(Uri baseUri) => new Uri(baseUri, Auth + "/" + Auth_CreateIdent);
public static Uri AuthRegisterFullPath(Uri baseUri) => new Uri(baseUri, Auth + "/" + Auth_Register);
} }