manage current user's media

This commit is contained in:
2026-04-22 16:53:14 +07:00
parent 2ee5c8da36
commit 8bc6b32e26
16 changed files with 547 additions and 160 deletions

2
api.ts
View File

@@ -12,6 +12,8 @@ export const API = {
Media:{
PRESIGNED: `${API_URL_ROOT}/media/presigned`,
GET_MEDIA_BY_ID: (Id: number | string) => `${API_URL_ROOT}/media/${Id}`,
DELETE_MEDIA_BY_ID: (Id: number | string) => `${API_URL_ROOT}/media/${Id}`,
DELETE_MEDIA: `${API_URL_ROOT}/media`,
},
Auth : {
LOGOUT: `${API_URL_ROOT}/auth/logout`,