Commit 37ef6581 authored by Patricio Bruna's avatar Patricio Bruna

Change api-key to api-token

parent 07e7622d
......@@ -157,7 +157,7 @@ export function getAllCompanies() {
return $.ajax({
url,
beforeSend: function setApiToken(xhrObj) {
xhrObj.setRequestHeader('x-api-token', window.manager_config.user_token);
xhrObj.setRequestHeader('x-api-key', window.manager_config.user_token);
},
dataType: 'json',
success: function onSuccess(data) {
......@@ -176,7 +176,7 @@ export function getCompany(id, success, error) {
return $.ajax({
url,
beforeSend: function setApiToken(xhrObj) {
xhrObj.setRequestHeader('x-api-token', window.manager_config.user_token);
xhrObj.setRequestHeader('x-api-key', window.manager_config.user_token);
},
dataType: 'json',
success: function onSuccess(data) {
......@@ -194,7 +194,7 @@ export function getInvoices(id, success, error) {
return $.ajax({
url,
beforeSend: function setApiToken(xhrObj) {
xhrObj.setRequestHeader('x-api-token', window.manager_config.user_token);
xhrObj.setRequestHeader('x-api-key', window.manager_config.user_token);
},
dataType: 'json',
success,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment