Files
physical-expo/constants/api.ts
2026-01-15 15:08:45 +08:00

18 lines
558 B
TypeScript

export const API_CONFIG = {
BASE_URL: "http://192.168.1.111:8000", // Update this with your machine IP if running on device ex: http://192.168.1.5:8000
TIMEOUT: 100000,
};
export const API_ENDPOINTS = {
SPORTS: "/v1/api/sports",
COUNTRIES: "/v1/api/countries",
LEAGUES: "/v1/api/leagues",
MATCHES_TODAY: "/v1/api/matches/today",
LIVESCORE: "/v1/api/livescore",
UPCOMING_MATCHES: "/v1/api/matches/upcoming",
MATCH_DETAIL: (id: string) => `/v1/api/matches/${id}`,
ODDS: "/v1/api/odds",
SEARCH: "/v1/api/search",
H2H: "/v1/api/h2h",
};