at the end of the day, it was inevitable
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
import {createApi} from '../common/Common'
|
||||
|
||||
const baseUrl = '/api/v1/recipients'
|
||||
|
||||
export const getItems = createApi('GET', baseUrl, {
|
||||
inputData: (data) => data
|
||||
})
|
||||
|
||||
export const createItem = createApi('POST', baseUrl)
|
||||
|
||||
export const updateItem = createApi('PUT', baseUrl + '/{recipientId}', {
|
||||
urlData: (data, recipientId) => ({recipientId})
|
||||
})
|
||||
|
||||
export const deleteItems = createApi('POST', baseUrl + '/delete')
|
||||
|
||||
export const activateItems = createApi('PUT', baseUrl + '/active')
|
||||
Reference in New Issue
Block a user