1
0
mirror of https://github.com/bitwarden/server.git synced 2025-07-02 08:32:50 -05:00

fix double //

This commit is contained in:
Kyle Spearrin
2018-08-21 14:32:09 -04:00
parent a275af6366
commit 255855887b
4 changed files with 8 additions and 8 deletions

View File

@ -37,12 +37,12 @@ namespace Bit.Core.Services
Type = type,
UserId = userId
};
await SendAsync(HttpMethod.Post, "/push/register", requestModel);
await SendAsync(HttpMethod.Post, "push/register", requestModel);
}
public async Task DeleteRegistrationAsync(string deviceId)
{
await SendAsync(HttpMethod.Delete, string.Concat("/push/", deviceId));
await SendAsync(HttpMethod.Delete, string.Concat("push/", deviceId));
}
public async Task AddUserRegistrationOrganizationAsync(IEnumerable<string> deviceIds, string organizationId)
@ -53,7 +53,7 @@ namespace Bit.Core.Services
}
var requestModel = new PushUpdateRequestModel(deviceIds, organizationId);
await SendAsync(HttpMethod.Put, "/push/add-organization", requestModel);
await SendAsync(HttpMethod.Put, "push/add-organization", requestModel);
}
public async Task DeleteUserRegistrationOrganizationAsync(IEnumerable<string> deviceIds, string organizationId)
@ -64,7 +64,7 @@ namespace Bit.Core.Services
}
var requestModel = new PushUpdateRequestModel(deviceIds, organizationId);
await SendAsync(HttpMethod.Put, "/push/delete-organization", requestModel);
await SendAsync(HttpMethod.Put, "push/delete-organization", requestModel);
}
}
}