call data fetching

This commit is contained in:
Luke Berndt
2023-01-01 09:52:31 -05:00
parent 10006a106b
commit 2afbe72533
3 changed files with 34 additions and 6 deletions

View File

@@ -27,10 +27,9 @@ export const apiSlice = createApi({
}),
getCalls: builder.query({
// The URL for the request is '/fakeApi/posts'
query: ({shortName, filterType, filterCode}) => ({
query: (shortName) => ({
url: `/${shortName}/calls`,
method: "GET",
params: { filterType, filterCode },
method: "GET" //, params: { filterType, filterCode },
})
})
})