CFE-3 add handler (write a mock) for provinceList and RoleList and add their hooks and write rendering test for CreateContent component

This commit is contained in:
2023-10-07 15:14:30 +03:30
parent 583d4aa332
commit ab568e0b28
7 changed files with 598 additions and 11 deletions

View File

@@ -1,5 +1,14 @@
const BASE_URL = process.env.NEXT_PUBLIC_BASE_URL;
// role list
export const GET_ROLE_LIST = BASE_URL + "/dashboard/roles/list";
// role list
// province/city list
export const GET_PROVINCE_LIST = BASE_URL + "/api/provinces";
export const GET_CITY_LIST = BASE_URL + "/api/cities";
// province/city list
//login
export const GET_USER_TOKEN = BASE_URL + "/api/auth/login";
//end login
@@ -14,4 +23,5 @@ export const GET_USER_ROUTE = BASE_URL + "/api/profile/info";
//expert management
export const GET_EXPERT_MANAGEMENT_LIST = BASE_URL + "/dashboard/experts/show";
export const CREATE_EXPERT_MANAGEMENT = BASE_URL + "/dashboard/experts/store";
//expert management