Gops: Fix incidents url adding plugin twice in it (#88472)

Fix incidents url adding plugin twice in it
This commit is contained in:
Sonia Aguilar 2024-05-30 11:05:20 +02:00 committed by GitHub
parent 56a544668f
commit 650f291054
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -7,8 +7,7 @@ interface IncidentsPluginConfigDto {
isIncidentCreated: boolean; isIncidentCreated: boolean;
} }
const getProxyApiUrl = (path: string) => const getProxyApiUrl = (path: string) => `/api/plugins/${SupportedPlugin.Incident}/resources${path}`;
`/api/plugins/grafana-incident-app/resources/${SupportedPlugin.Incident}${path}`;
export const incidentsApi = alertingApi.injectEndpoints({ export const incidentsApi = alertingApi.injectEndpoints({
endpoints: (build) => ({ endpoints: (build) => ({