feat: Convert all app files to JS
This commit is contained in:
10
packages/backend/src/apps/carbone/common/add-auth-header.js
Normal file
10
packages/backend/src/apps/carbone/common/add-auth-header.js
Normal file
@@ -0,0 +1,10 @@
|
||||
const addAuthHeader = ($) => {
|
||||
if ($.auth.data?.apiKey) {
|
||||
requestConfig.headers.Authorization = `Bearer ${$.auth.data.apiKey}`;
|
||||
requestConfig.headers['carbone-version'] = '4';
|
||||
}
|
||||
|
||||
return requestConfig;
|
||||
};
|
||||
|
||||
export default addAuthHeader;
|
Reference in New Issue
Block a user