feat: add contest clone button to admin contest list

This commit is contained in:
2026-05-21 19:21:40 -06:00
parent 2cf971b40b
commit 776cfdf9de
2 changed files with 20 additions and 0 deletions

View File

@@ -160,6 +160,10 @@ export function editContest(contest: Contest | BlankContest) {
return http.put("admin/contest", contest)
}
export function cloneContest(contest_id: number) {
return http.post("admin/contest/clone", { contest_id })
}
export function getContest(id: string) {
return http.get<Contest & { password: string }>("admin/contest", {
params: { id },