add editor

This commit is contained in:
taDuc
2026-05-02 02:48:17 +07:00
parent 41af501b51
commit a74047fd09
62 changed files with 9049 additions and 9 deletions

8
api.ts
View File

@@ -58,4 +58,10 @@ export const API = {
GET_COMMITS: (id: number | string) => `${API_URL_ROOT}/projects/${id}/commits`,
RESTORE_COMMIT: (id: number | string) => `${API_URL_ROOT}/projects/${id}/commits/restore`,
},
}
Submission: {
SEARCH: `${API_URL_ROOT}/submissions`,
GET_BY_ID: (id: number | string) => `${API_URL_ROOT}/submissions/${id}`,
UPDATE_STATUS: (id: number | string) => `${API_URL_ROOT}/submissions/${id}/status`,
DELETE: (id: number | string) => `${API_URL_ROOT}/submissions/${id}`,
},
}