mirror of
				https://github.com/public-transport/db-vendo-client.git
				synced 2025-11-04 01:56:33 +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,
 | 
						|
};
 |