mirror of
https://github.com/astuto/astuto.git
synced 2025-12-16 03:37:56 +01:00
Enable redux dev tools and refactor http requests
This commit is contained in:
7
app/javascript/helpers/buildRequestHeaders.ts
Normal file
7
app/javascript/helpers/buildRequestHeaders.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
const buildRequestHeaders = (authenticityToken: string) => ({
|
||||
Accept: 'application/json',
|
||||
'Content-Type': 'application/json',
|
||||
'X-CSRF-Token': authenticityToken,
|
||||
});
|
||||
|
||||
export default buildRequestHeaders;
|
||||
Reference in New Issue
Block a user