( endpoint: string, headers?: Record<string, string>, )
| 125 | * Convenience function for GET requests |
| 126 | */ |
| 127 | export async function get<T = any>( |
| 128 | endpoint: string, |
| 129 | headers?: Record<string, string>, |
| 130 | ): Promise<ApiResponse<T>> { |
| 131 | return makeAuthenticatedRequest<T>(endpoint, { method: "GET", headers }); |
| 132 | } |
| 133 | |
| 134 | /** |
| 135 | * Convenience function for POST requests |
no test coverage detected