1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-09 09:51:02 +01:00

remove deprecated "sites" api endpoint

This commit is contained in:
Kyle Spearrin 2017-06-16 12:35:46 -04:00
parent 842377c583
commit 4b9712d034

View File

@ -171,7 +171,7 @@ function initApiService() {
handleTokenState(self).then(function (token) {
$.ajax({
type: 'GET',
url: self.baseUrl + '/sites/' + id + '?' + token,
url: self.baseUrl + '/logins/' + id + '?' + token,
dataType: 'json',
success: function (response) {
success(new LoginResponse(response));
@ -190,7 +190,7 @@ function initApiService() {
handleTokenState(self).then(function (token) {
$.ajax({
type: 'POST',
url: self.baseUrl + '/sites?' + token,
url: self.baseUrl + '/logins?' + token,
data: JSON.stringify(loginRequest),
contentType: 'application/json; charset=utf-8',
dataType: 'json',
@ -211,7 +211,7 @@ function initApiService() {
handleTokenState(self).then(function (token) {
$.ajax({
type: 'POST',
url: self.baseUrl + '/sites/' + id + '?' + token,
url: self.baseUrl + '/logins/' + id + '?' + token,
data: JSON.stringify(loginRequest),
contentType: 'application/json; charset=utf-8',
dataType: 'json',