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;
|
||||
|
||||
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 [error, setError] = useState<Maybe<Error>>(null);
|
||||
const options: RequestInit = {cache: "no-store"};
|
||||
|
|
Loading…
Reference in a new issue