mirror of
https://git.victorphan.net/basketballcantho/ten-project.git
synced 2026-08-05 15:43:11 +07:00
Hoàn thành chức năng collaborative
This commit is contained in:
@@ -40,6 +40,8 @@ export const api = {
|
||||
// Annotations
|
||||
getAnnotation: (pdfId: number, page: number) =>
|
||||
request<import("@/types").AnnotationData>(`/api/annotations/${pdfId}/${page}`),
|
||||
getAllAnnotations: (pdfId: number, page: number) =>
|
||||
request<import("@/types").AnnotationData>(`/api/annotations/${pdfId}/${page}/all`),
|
||||
upsertAnnotation: (pdfId: number, page: number, body: { canvas_data: object }) =>
|
||||
request<import("@/types").AnnotationData>(`/api/annotations/${pdfId}/${page}`, {
|
||||
method: "PUT",
|
||||
|
||||
Reference in New Issue
Block a user