mirror of
https://github.com/grafana/grafana.git
synced 2025-07-31 20:22:11 +08:00
17 lines
561 B
TypeScript
17 lines
561 B
TypeScript
import { createApi } from '@reduxjs/toolkit/query/react';
|
|
|
|
import { createBaseQuery } from '../../../api/createBaseQuery';
|
|
import { getAPIBaseURL } from '../../../api/utils';
|
|
|
|
// Currently, we are loading all query templates
|
|
// Organizations can have maximum of 1000 query templates
|
|
export const QUERY_LIBRARY_GET_LIMIT = 1000;
|
|
|
|
export const BASE_URL = getAPIBaseURL('peakq.grafana.app', 'v0alpha1');
|
|
|
|
export const queryLibraryApi = createApi({
|
|
baseQuery: createBaseQuery({ baseURL: BASE_URL }),
|
|
reducerPath: 'queryLibraryAPI',
|
|
endpoints: () => ({}),
|
|
});
|