feat(removebg): add remove-bg integration (#1406)
* 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>
This commit is contained in:
11
packages/backend/src/apps/removebg/common/add-auth-header.ts
Normal file
11
packages/backend/src/apps/removebg/common/add-auth-header.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
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;
|
Reference in New Issue
Block a user