2 parents 3a60220 + 194ce98 commit b717e37Copy full SHA for b717e37
2 files changed
src/constants/api.ts
@@ -0,0 +1,3 @@
1
+// src/constants/api.ts
2
+
3
+export const API_BASE_URL = "https://flathub.org/api/v2";
src/services/api.ts
@@ -1,4 +1,5 @@
import { fetch as tauriFetch } from "@tauri-apps/plugin-http";
+import { API_BASE_URL } from "../constants/api";
import type {
4
AppOfTheDayResponse,
5
AppStream,
@@ -10,8 +11,6 @@ import type {
10
11
SearchResponse,
12
} from "../types";
13
-const API_BASE_URL = "https://flathub.org/api/v2";
14
-
15
const getTodayDate = (): string => {
16
const today = new Date();
17
const year = today.getFullYear();
0 commit comments