Files
astuto/app/javascript/helpers/buildRequestHeaders.ts

7 lines
207 B
TypeScript
Raw Normal View History

const buildRequestHeaders = (authenticityToken: string) => ({
Accept: 'application/json',
'Content-Type': 'application/json',
'X-CSRF-Token': authenticityToken,
});
export default buildRequestHeaders;