This commit is contained in:
2026-04-07 16:20:18 +07:00
parent 91f3b16634
commit e3065e1bf5
16 changed files with 442 additions and 195 deletions

6
api.ts
View File

@@ -1,10 +1,14 @@
export const API_URL_ROOT = process.env.NEXT_PUBLIC_API_URL_ROOT || "";
export const URL_MEDIA = "https://cdn.kain.id.vn/history-app/"
export const API = {
User : {
CURRENT: `${API_URL_ROOT}/users/current`,
MEDIA: `${API_URL_ROOT}/users/current/media`,
Update: (Id: number | string) => `${API_URL_ROOT}/users/${Id}`,
CHANGE_PASSWORD: (Id: number | string) => `${API_URL_ROOT}/users/${Id}/password`,
},
Media:{
PRESIGNED: `${API_URL_ROOT}/media/presigned`
},
Auth : {
SIGNUP: `${API_URL_ROOT}/auth/signup`,