Initial commit: Add project files
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
import { api } from '@/shared/api/client'
|
||||
import { responseSchema, type RequestDto, type ResponseDto } from './schema'
|
||||
export async function execute(request: RequestDto): Promise<ResponseDto> {
|
||||
const response = await api.post('/api/v1/__MODULE__/__FEATURE__', request, { headers: { 'Idempotency-Key': request.idempotencyKey } })
|
||||
return responseSchema.parse(response.data)
|
||||
}
|
||||
Reference in New Issue
Block a user