mirror of
https://github.com/public-transport/db-vendo-client.git
synced 2025-02-23 15:19:35 +02:00
13 lines
222 B
JavaScript
13 lines
222 B
JavaScript
import {v4 as uuidv4} from 'uuid';
|
|
|
|
const getHeaders = (contentType) => {
|
|
return {
|
|
'X-Correlation-ID': uuidv4() + '_' + uuidv4(),
|
|
'Accept': contentType,
|
|
'Content-Type': contentType,
|
|
};
|
|
};
|
|
|
|
export {
|
|
getHeaders,
|
|
};
|