
* feat(remove-bg): add remove-bg integration * feat(removebg): update name and icon * docs(removebg): update name and icon * docs: add remove.bg in available apps * docs(removebg): correct path --------- Co-authored-by: Ali BARIN <ali.barin53@gmail.com>
11 lines
273 B
TypeScript
11 lines
273 B
TypeScript
import { TBeforeRequest } from '@automatisch/types';
|
|
|
|
const addAuthHeader: TBeforeRequest = ($, requestConfig) => {
|
|
if ($.auth.data?.apiKey) {
|
|
requestConfig.headers['X-API-Key'] = `${$.auth.data.apiKey}`;
|
|
}
|
|
|
|
return requestConfig;
|
|
};
|
|
|
|
export default addAuthHeader; |