Codeminer42/cm42-central

View on GitHub
app/assets/javascripts/services/httpService.js

Summary

Maintainability
A
0 mins
Test Coverage
import axios from 'axios';

const httpService = axios.create({
  headers: {
    Accept: 'application/json, text/javascript',
    'X-CSRF-Token': $('[name=csrf-token]').attr('content'),
  },
});

export default httpService;