This commit is contained in:
xuyue committed 2026-03-30 19:13:53 -06:00
1 parent e9596e28a3
commit 1df211c760
2 files changed
+5

No files matched your search

+4
View File
@@ -208,6 +208,10 @@ export const Submission = {
return res.data
},
async incrementView(id: string) {
await http.post(`/submission/${id}/view`)
},
async updateScore(id: string, score: number) {
const res = await http.put(`/submission/${id}/score`, { score })
return res.data