diff options
Diffstat (limited to 'src/helpers/fetchInfo.ts')
| -rw-r--r-- | src/helpers/fetchInfo.ts | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/helpers/fetchInfo.ts b/src/helpers/fetchInfo.ts deleted file mode 100644 index 15cf963..0000000 --- a/src/helpers/fetchInfo.ts +++ /dev/null @@ -1,9 +0,0 @@ - -import { Info } from "../types/info"; - -export const fetchInfo = async (): Promise<Info> => { - const API_URL = import.meta.env.VITE_APP_HEARDLE_API_URL || "http://localhost:3000"; - const response = await fetch(`${API_URL}/info`); - const data = await response.json(); - return data as Info; -}; |
