mirror of
https://github.com/nowcommunity/nowdatabase.git
synced 2026-10-12 19:13:52 +03:00
Created sedimentaryStructureReducer
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
import { SedimentaryStructure } from '@/backendTypes'
|
||||
import { api } from './api'
|
||||
|
||||
const sedimentaryStructuresApi = api.injectEndpoints({
|
||||
endpoints: builder => ({
|
||||
getAllSedimentaryStructures: builder.query<SedimentaryStructure[], void>({
|
||||
query: () => ({
|
||||
url: `/sedimentary-structure/all`,
|
||||
}),
|
||||
}),
|
||||
}),
|
||||
})
|
||||
|
||||
export const { useGetAllSedimentaryStructuresQuery } = sedimentaryStructuresApi
|
||||
Reference in New Issue
Block a user