feat: something with something

This commit is contained in:
moolcoov
2025-03-02 13:52:42 +03:00
parent 62e44aba4c
commit b220004ea5
25 changed files with 369 additions and 126 deletions
@@ -0,0 +1,14 @@
import { userFetch } from ".";
import { Competition } from "../types/competition";
export const getCompetitions = async (participating?: boolean) => {
return await userFetch<Competition[]>("/competitions", {
params: {
is_participating: participating,
},
});
};
export const getCompetition = async (id: string) => {
return await userFetch<Competition>(`/competition/${id}`);
};