update for stg
All checks were successful
Gitea Actions Demo / check (push) Successful in 25s

This commit is contained in:
2024-09-30 18:00:00 +07:00
parent 4953cf09da
commit bf275844d2
4 changed files with 70 additions and 49 deletions

View File

@ -1,15 +1,17 @@
export const POST_LOGIN = '/api/auth/login'
export const POST_LOGOUT = '/api/auth/logout'
export const POST_REFRESH = '/api/auth/refresh'
export const GET_USER_PROFILE = '/api/user/me'
export const PUT_UPDATE_USER_PROFILE = '/api/user/update-profile'
const BASE_URL = ''
export const POST_LOGIN = `${BASE_URL}/api/auth/login`
export const POST_LOGOUT = `${BASE_URL}/api/auth/logout`
export const POST_REFRESH = `${BASE_URL}/api/auth/refresh`
export const GET_USER_PROFILE = `${BASE_URL}/api/user/me`
export const PUT_UPDATE_USER_PROFILE = `${BASE_URL}/api/user/update-profile`
/**
* House API
*/
export const POST_HOUSE_CREATE = '/api/house/create'
export const POST_HOUSE_CREATE = `${BASE_URL}/api/house/create`
export const GET_HOUSES_LIST = ({ page, pageSize }) =>
`/api/house/all?page=${page}&pageSize=${pageSize}`
export const GET_HOUSE_DETAIL = (id) => `/api/house/${id}`
export const PUT_UPDATE_HOUSE = '/api/house/update'
export const DEL_DELETE_HOUSE = (id) => `/api/house/delete/${id}`
`${BASE_URL}/api/house/all?page=${page}&pageSize=${pageSize}`
export const GET_HOUSE_DETAIL = (id) => `${BASE_URL}/api/house/${id}`
export const PUT_UPDATE_HOUSE = `${BASE_URL}/api/house/update`
export const DEL_DELETE_HOUSE = (id) => `${BASE_URL}/api/house/delete/${id}`