diff options
| author | 2022-02-12 10:59:19 +0100 | |
|---|---|---|
| committer | 2022-02-12 11:07:50 +0100 | |
| commit | 7c48533571e9f9d3731a59433a56cc8d6e008123 (patch) | |
| tree | f86868dfea251fa3b198ffcf3e158a3ed354ff9d /src/hooks | |
| parent | 5dbf880ce3cdb227a85dbb0015609c210557c60b (diff) | |
| download | client-7c48533571e9f9d3731a59433a56cc8d6e008123.tar.gz client-7c48533571e9f9d3731a59433a56cc8d6e008123.tar.bz2 client-7c48533571e9f9d3731a59433a56cc8d6e008123.zip | |
Added search and filter options
Diffstat (limited to 'src/hooks')
| -rw-r--r-- | src/hooks/useRequests.tsx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/hooks/useRequests.tsx b/src/hooks/useRequests.tsx index 204877a..c3fc2be 100644 --- a/src/hooks/useRequests.tsx +++ b/src/hooks/useRequests.tsx | |||
| @@ -2,12 +2,13 @@ import {useCallback, useEffect, useMemo, useState} from "react"; | |||
| 2 | import {getHost} from "../utils"; | 2 | import {getHost} from "../utils"; |
| 3 | 3 | ||
| 4 | export type Headers = [string, string][] | 4 | export type Headers = [string, string][] |
| 5 | export type Method = 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH' | ||
| 5 | 6 | ||
| 6 | export interface RequestPayload { | 7 | export interface RequestPayload { |
| 7 | id: string | 8 | id: string |
| 8 | body: string | 9 | body: string |
| 9 | headers: Headers | 10 | headers: Headers |
| 10 | method: 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH' | 11 | method: Method |
| 11 | path: string | 12 | path: string |
| 12 | } | 13 | } |
| 13 | 14 | ||
