mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-04 20:10:41 +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({
|
||||
baseURL: `${ENVIRONMENT.baseURL}${apiV2}`,
|
||||
});
|
||||
ApiV2Instance.interceptors.response.use(
|
||||
interceptorsResponse,
|
||||
interceptorRejected,
|
||||
);
|
||||
ApiV2Instance.interceptors.request.use(interceptorsRequestResponse);
|
||||
|
||||
AxiosAlertManagerInstance.interceptors.response.use(
|
||||
interceptorsResponse,
|
||||
|
Loading…
x
Reference in New Issue
Block a user