1
0
mirror of https://github.com/bitwarden/mobile synced 2026-01-20 09:23:50 +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

@@ -17,7 +17,7 @@ namespace Bit.App.Repositories
: base(connectivity, httpService, tokenService)
{ }
protected override string ApiRoute => "settings";
protected override string ApiRoute => "/settings";
public virtual async Task<ApiResult<DomainsResponse>> GetDomains(bool excluded = false)
{
@@ -37,8 +37,8 @@ namespace Bit.App.Repositories
var requestMessage = new TokenHttpRequestMessage()
{
Method = HttpMethod.Get,
RequestUri = new Uri(client.BaseAddress,
string.Concat(ApiRoute, "/domains?excluded=", excluded.ToString().ToLowerInvariant())),
RequestUri = new Uri(
string.Concat(client.BaseAddress, ApiRoute, "/domains?excluded=", excluded.ToString().ToLowerInvariant())),
};
try