import { API_URL } from './constants';

export const getCurrentUserURL = () => `${API_URL}currentUser`;
export const getCurrentTimeURL = () => `${API_URL}getTime`;

export const getContestsURL = () => `${API_URL}contests`;
export const getContestURL = (contestId) => `${getContestsURL()}/${contestId}`;
export const getProblemURL = (contestId, problemId) => `${getContestURL(contestId)}/problems/${problemId}`;
export const getProblemExamplesURL = (contestId, problemId) => `${getProblemURL(contestId, problemId)}/examples`;
export const getProblemSubmitsURL = (contestId, problemId) => `${getProblemURL(contestId, problemId)}/submits`;

import { API_URL } from './constants';

export const getCurrentUserURL = () => `${API_URL}currentUser`;
export const getCurrentTimeURL = () => `${API_URL}time`;

export const getContestsURL = () => `${API_URL}contests`;
export const getContestURL = (contestId) => `${getContestsURL()}/${contestId}`;
export const getProblemURL = (contestId, problemId) => `${getContestURL(contestId)}/problems/${problemId}`;
export const getProblemExamplesURL = (contestId, problemId) => `${getProblemURL(contestId, problemId)}/examples`;
export const getProblemSubmitsURL = (contestId, problemId) => `${getProblemURL(contestId, problemId)}/submits`;

Fix time synchonization endpoint URL
Fix time synchonization endpoint URL
