Fix endpoint URL
This commit is contained in:
parent
6ef043a796
commit
53b93a213a
1 changed files with 1 additions and 1 deletions
|
@ -4,7 +4,7 @@ import { TResponse, Response } from "~/lib/response";
|
||||||
type Maybe<T> = T | null;
|
type Maybe<T> = T | null;
|
||||||
|
|
||||||
export function useWebService(): [Maybe<TResponse>, Maybe<Error>] {
|
export function useWebService(): [Maybe<TResponse>, Maybe<Error>] {
|
||||||
const endpoint = "https://wtfismyip.com/json";
|
const endpoint = "https://clean.wtfismyip.com/json";
|
||||||
const [response, setResponse] = useState<Maybe<TResponse>>(null);
|
const [response, setResponse] = useState<Maybe<TResponse>>(null);
|
||||||
const [error, setError] = useState<Maybe<Error>>(null);
|
const [error, setError] = useState<Maybe<Error>>(null);
|
||||||
const options: RequestInit = {cache: "no-store"};
|
const options: RequestInit = {cache: "no-store"};
|
||||||
|
|
Loading…
Reference in a new issue