Move and rename axios

This commit is contained in:
Jannis Mattheis 2018-10-21 16:23:52 +02:00
parent 66ccb94dc7
commit 160ff561df
2 changed files with 3 additions and 3 deletions

View File

@ -1,6 +1,6 @@
import axios from 'axios';
import {CurrentUser} from '../CurrentUser';
import {SnackReporter} from '../snack/SnackManager';
import {CurrentUser} from './CurrentUser';
import {SnackReporter} from './snack/SnackManager';
export const initAxios = (currentUser: CurrentUser, snack: SnackReporter) => {
axios.interceptors.request.use((config) => {

View File

@ -2,7 +2,7 @@ import * as React from 'react';
import * as ReactDOM from 'react-dom';
import 'typeface-roboto';
import 'typeface-roboto-mono';
import {initAxios} from './actions/axios';
import {initAxios} from './apiAuth';
import * as config from './config';
import Layout from './layout/Layout';
import registerServiceWorker from './registerServiceWorker';