rudamentary mutli-post err handling
This commit is contained in:
@@ -8,7 +8,7 @@ const localStorage = global.process && process.env.NODE_ENV === "test"
|
||||
require("localStorage")
|
||||
: global.window.localStorage;
|
||||
|
||||
function headers() {
|
||||
export function headers() {
|
||||
const token = localStorage.getItem("userToken") || "";
|
||||
let header = {
|
||||
Accept: "application/json",
|
||||
@@ -59,3 +59,5 @@ export function del(url) {
|
||||
.then(response => response.data)
|
||||
.catch(error => Promise.reject(error));
|
||||
}
|
||||
|
||||
export default apiInstance;
|
||||
|
Reference in New Issue
Block a user