test: competition start

This commit is contained in:
rngsurrounded
2025-03-02 21:12:53 +09:00
parent 2d961ea4e2
commit 4e8f931e7d
3 changed files with 82 additions and 106 deletions
@@ -12,3 +12,9 @@ export const getCompetitions = async (participating?: boolean) => {
export const getCompetition = async (id: string) => {
return await userFetch<Competition>(`/competition/${id}`);
};
export const startCompetition = async (competitionId: string) => {
return await userFetch(`/competitions/${competitionId}/start`, {
method: 'POST'
});
};