We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 131ba26 commit 5a924beCopy full SHA for 5a924be
fetch.ts
@@ -6,9 +6,10 @@ export const fetchDatasets = async (variables: any) => {
6
return data;
7
};
8
9
-export const fetchUseCases = async (variables: any) => {
+
10
+export const fetchData = async (type: string, variables: any) => {
11
const response = await fetch(
- `${process.env.NEXT_PUBLIC_BACKEND_URL}/api/search/usecase/${variables}`
12
+ `${process.env.NEXT_PUBLIC_BACKEND_URL}/api/search/${type}/${variables}`
13
);
14
const data = await response.json();
15
0 commit comments