Skip to content

Commit

Permalink
Merge pull request #46 from dudgns3tp/fix/org-client
Browse files Browse the repository at this point in the history
[#45][fix] orgclient url 수정
  • Loading branch information
dudgns3tp authored Jul 13, 2023
2 parents 05bb6ec + 5b086bb commit d89292d
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/services/api/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,13 @@ const axiosConfig: AxiosRequestConfig<IAxiosConfig> = {
baseURL: config.API_URL,
headers: { 'Content-Type': 'application/json' },
};
const axiosFormConfig: AxiosRequestConfig<IAxiosConfig> = {
baseURL: config.API_URL,
headers: {
'Content-Type': 'multipart/form-data',
},
const orgAxiosConfig: AxiosRequestConfig<IAxiosConfig> = {
baseURL: config.ORG_API_URL,
headers: { 'Content-Type': 'application/json' },
};

const client: AxiosInstance = axios.create(axiosConfig);
const orgClient: AxiosInstance = axios.create(axiosFormConfig);
const orgClient: AxiosInstance = axios.create(orgAxiosConfig);

client.interceptors.request.use(
function (config) {
Expand Down

0 comments on commit d89292d

Please sign in to comment.