Skip to content

Instantly share code, notes, and snippets.

sainumtown

Block or report user

Report or block sainumtown

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@sainumtown
sainumtown / Untitled-1
Created Mar 23, 2018
sample of axios interceptors
View Untitled-1
import axios from 'axios';
import status from 'statuses';
import getUrl from '../config/config';
axios.interceptors.request.use(
(config)=> {return config;},
(error) => {return Promise.reject("request", error)}
);
axios.interceptors.response.use(
You can’t perform that action at this time.