1
0
mirror of https://github.com/bitwarden/mobile synced 2026-01-03 09:03:35 +00:00

handle non-root URLs

This commit is contained in:
Kyle Spearrin
2017-08-11 14:24:32 -04:00
parent 0eb68ec461
commit 12e3214f70
10 changed files with 35 additions and 36 deletions

View File

@@ -16,7 +16,7 @@ namespace Bit.App.Repositories
: base(connectivity, httpService, tokenService)
{ }
protected override string ApiRoute => "two-factor";
protected override string ApiRoute => "/two-factor";
public virtual async Task<ApiResult> PostSendEmailLoginAsync(TwoFactorEmailRequest requestObj)
{
@@ -30,7 +30,7 @@ namespace Bit.App.Repositories
var requestMessage = new TokenHttpRequestMessage(requestObj)
{
Method = HttpMethod.Post,
RequestUri = new Uri(client.BaseAddress, string.Concat(ApiRoute, "/send-email-login")),
RequestUri = new Uri(string.Concat(client.BaseAddress, ApiRoute, "/send-email-login")),
};
try