mirror of
https://gitlab.com/megazordpobeda/DataRush.git
synced 2026-05-23 07:27:10 +00:00
feat: something with something
This commit is contained in:
@@ -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}`);
|
||||
};
|
||||
Reference in New Issue
Block a user