Loads and gets calls

This commit is contained in:
Luke Berndt
2023-01-08 15:13:41 -05:00
parent 9205224f23
commit 1bfb796a49
4 changed files with 273 additions and 227 deletions

View File

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