mirror of
https://github.com/grafana/grafana.git
synced 2025-07-29 09:32:21 +08:00
15 lines
388 B
Handlebars
15 lines
388 B
Handlebars
import { createApi } from '@reduxjs/toolkit/query/react';
|
|
|
|
import { createBaseQuery } from 'app/api/createBaseQuery';
|
|
import { getAPIBaseURL } from 'app/api/utils';
|
|
|
|
export const BASE_URL = getAPIBaseURL('{{group}}', '{{version}}');
|
|
|
|
export const api = createApi({
|
|
reducerPath: '{{reducerPath}}',
|
|
baseQuery: createBaseQuery({
|
|
baseURL: BASE_URL,
|
|
}),
|
|
endpoints: () => ({}),
|
|
});
|