Add /auth/registerNewKey
This commit is contained in:
12
MareSynchronosAPI/Dto/Account/RegisterReplyDto.cs
Normal file
12
MareSynchronosAPI/Dto/Account/RegisterReplyDto.cs
Normal 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;
|
||||
}
|
||||
@@ -5,5 +5,7 @@ public class MareAuth
|
||||
|
||||
public const string Auth = "/auth";
|
||||
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 AuthRegisterFullPath(Uri baseUri) => new Uri(baseUri, Auth + "/" + Auth_Register);
|
||||
}
|
||||
Reference in New Issue
Block a user