mirror of
https://github.com/bitwarden/browser
synced 2025-12-12 14:23:32 +00:00
remove deprecated "sites" api endpoint
This commit is contained in:
@@ -171,7 +171,7 @@ function initApiService() {
|
|||||||
handleTokenState(self).then(function (token) {
|
handleTokenState(self).then(function (token) {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: 'GET',
|
type: 'GET',
|
||||||
url: self.baseUrl + '/sites/' + id + '?' + token,
|
url: self.baseUrl + '/logins/' + id + '?' + token,
|
||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
success: function (response) {
|
success: function (response) {
|
||||||
success(new LoginResponse(response));
|
success(new LoginResponse(response));
|
||||||
@@ -190,7 +190,7 @@ function initApiService() {
|
|||||||
handleTokenState(self).then(function (token) {
|
handleTokenState(self).then(function (token) {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: 'POST',
|
type: 'POST',
|
||||||
url: self.baseUrl + '/sites?' + token,
|
url: self.baseUrl + '/logins?' + token,
|
||||||
data: JSON.stringify(loginRequest),
|
data: JSON.stringify(loginRequest),
|
||||||
contentType: 'application/json; charset=utf-8',
|
contentType: 'application/json; charset=utf-8',
|
||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
@@ -211,7 +211,7 @@ function initApiService() {
|
|||||||
handleTokenState(self).then(function (token) {
|
handleTokenState(self).then(function (token) {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: 'POST',
|
type: 'POST',
|
||||||
url: self.baseUrl + '/sites/' + id + '?' + token,
|
url: self.baseUrl + '/logins/' + id + '?' + token,
|
||||||
data: JSON.stringify(loginRequest),
|
data: JSON.stringify(loginRequest),
|
||||||
contentType: 'application/json; charset=utf-8',
|
contentType: 'application/json; charset=utf-8',
|
||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
|
|||||||
Reference in New Issue
Block a user