summaryrefslogtreecommitdiffstats
path: root/src/hooks
diff options
context:
space:
mode:
authorGravatar Tom van der Lee <tom@vanderlee.io>2022-02-12 10:59:19 +0100
committerGravatar Tom van der Lee <tom@vanderlee.io>2022-02-12 11:07:50 +0100
commit7c48533571e9f9d3731a59433a56cc8d6e008123 (patch)
treef86868dfea251fa3b198ffcf3e158a3ed354ff9d /src/hooks
parent5dbf880ce3cdb227a85dbb0015609c210557c60b (diff)
downloadclient-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.tsx3
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";
2import {getHost} from "../utils"; 2import {getHost} from "../utils";
3 3
4export type Headers = [string, string][] 4export type Headers = [string, string][]
5export type Method = 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH'
5 6
6export interface RequestPayload { 7export 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