mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-04 16:01:26 +08:00
Merge pull request #1348 from SigNoz/issue-1329
fix: add request/response interceptors for ApiV2Instance
This commit is contained in:
commit
50501ea80f
@ -102,6 +102,11 @@ export const AxiosAlertManagerInstance = axios.create({
|
|||||||
export const ApiV2Instance = axios.create({
|
export const ApiV2Instance = axios.create({
|
||||||
baseURL: `${ENVIRONMENT.baseURL}${apiV2}`,
|
baseURL: `${ENVIRONMENT.baseURL}${apiV2}`,
|
||||||
});
|
});
|
||||||
|
ApiV2Instance.interceptors.response.use(
|
||||||
|
interceptorsResponse,
|
||||||
|
interceptorRejected,
|
||||||
|
);
|
||||||
|
ApiV2Instance.interceptors.request.use(interceptorsRequestResponse);
|
||||||
|
|
||||||
AxiosAlertManagerInstance.interceptors.response.use(
|
AxiosAlertManagerInstance.interceptors.response.use(
|
||||||
interceptorsResponse,
|
interceptorsResponse,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user