Enable redux dev tools and refactor http requests

This commit is contained in:
Riccardo Graziosi
2022-04-09 10:45:43 +02:00
parent ad67c3986b
commit 1803c293ff
10 changed files with 27 additions and 45 deletions

View File

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