Fix endpoint URL

This commit is contained in:
0x1eef 2024-01-29 00:05:04 -03:00
parent 6ef043a796
commit 53b93a213a

View file

@ -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"};