From 6fe27c91d5b432cf81658cfcbce0a3e955c87b44 Mon Sep 17 00:00:00 2001 From: Andrean <88448470+QkoSad@users.noreply.github.com> Date: Mon, 8 May 2023 16:51:12 +0000 Subject: [PATCH] Update api.js --- client/src/utils/api.js | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/client/src/utils/api.js b/client/src/utils/api.js index 40d2e7e..c3ed982 100644 --- a/client/src/utils/api.js +++ b/client/src/utils/api.js @@ -2,27 +2,12 @@ import axios from 'axios'; import store from '../store'; import { LOGOUT } from '../actions/types'; -<<<<<<< HEAD -// Create an instance of axios -======= ->>>>>>> cc38df43629d64ca77f694c971a13a026b3afcfb const api = axios.create({ baseURL: '/api', headers: { 'Content-Type': 'application/json' } }); -<<<<<<< HEAD -/* - NOTE: intercept any error responses from the api - and check if the token is no longer valid. - ie. Token has expired or user is no longer - authenticated. - logout the user if the token has expired -*/ -======= ->>>>>>> cc38df43629d64ca77f694c971a13a026b3afcfb - api.interceptors.response.use( (res) => res, (err) => {