(
endpoint: string,
useAuthenticityToken = false,
headers: Record<string, string> = {}
)
| 139 | } |
| 140 | |
| 141 | async function deleteRequest( |
| 142 | endpoint: string, |
| 143 | useAuthenticityToken = false, |
| 144 | headers: Record<string, string> = {} |
| 145 | ): Promise<Response> { |
| 146 | return sendRequest( |
| 147 | 'DELETE', |
| 148 | endpoint, |
| 149 | undefined, |
| 150 | useAuthenticityToken, |
| 151 | headers |
| 152 | ); |
| 153 | } |
| 154 | |
| 155 | export default { |
| 156 | delete: deleteRequest, |
nothing calls this directly
no test coverage detected