mirror of
https://github.com/astuto/astuto.git
synced 2025-12-16 03:37:56 +01:00
7 lines
242 B
TypeScript
7 lines
242 B
TypeScript
const buildRequestHeaders = (authenticityToken: string, contentType: string = 'application/json') => ({
|
|
Accept: 'application/json',
|
|
'Content-Type': contentType,
|
|
'X-CSRF-Token': authenticityToken,
|
|
});
|
|
|
|
export default buildRequestHeaders; |