update new api reques and response
This commit is contained in:
@@ -1,24 +1,31 @@
|
||||
const BASE_URL =
|
||||
process.env.NEXT_PUBLIC_API_URL || "https://api.meridynpharma.com";
|
||||
|
||||
const CREATE_USER = "/api/v1/accounts/user/create";
|
||||
const LOGIN_USER = "/api/v1/authentication/login/";
|
||||
const REGIONS = "/api/v1/shared/region/list/";
|
||||
const PLANS = "/api/v1/shared/plan/";
|
||||
const DISCTRICT = "/api/v1/shared/disctrict/";
|
||||
const OBJECT = "/api/v1/shared/place/";
|
||||
const DOCTOR = "/api/v1/shared/doctor/";
|
||||
const PHARMACY = "/api/v1/shared/pharmacy/";
|
||||
const LOCATION = "/api/v1/shared/location/";
|
||||
const TOUR_PLAN = "/api/v1/shared/tour_plan/";
|
||||
const FACTORY = "/api/v1/shared/factory/list/";
|
||||
const PRODUCT = "/api/v1/orders/product/list/";
|
||||
const ORDER = "/api/v1/orders/order/";
|
||||
const API_V = "/api/v1";
|
||||
|
||||
const CREATE_USER = `${API_V}/accounts/user/create`;
|
||||
const LOGIN_USER = `${API_V}/authentication/login/`;
|
||||
const REGIONS = `${API_V}/shared/region/list/`;
|
||||
const PLANS = `${API_V}/shared/plan/`;
|
||||
const DISCTRICT = `${API_V}/shared/disctrict/`;
|
||||
const OBJECT = `${API_V}/shared/place/`;
|
||||
const DOCTOR = `${API_V}/shared/doctor/`;
|
||||
const PHARMACY = `${API_V}/shared/pharmacy/`;
|
||||
const LOCATION = `${API_V}/shared/location/`;
|
||||
const TOUR_PLAN = `${API_V}/shared/tour_plan/`;
|
||||
const FACTORY = `${API_V}/shared/factory/list/`;
|
||||
const PRODUCT = `${API_V}/orders/product/list/`;
|
||||
const ORDER = `${API_V}/orders/order/`;
|
||||
const SUPPORT = `${API_V}/shared/support/`;
|
||||
const DISTRIBUTED_LIST = `${API_V}/shared/distributed_product/list/`;
|
||||
const DISTRIBUTED_CREATE = `${API_V}/orders/distributed_product/create/`;
|
||||
|
||||
export {
|
||||
BASE_URL,
|
||||
CREATE_USER,
|
||||
DISCTRICT,
|
||||
DISTRIBUTED_CREATE,
|
||||
DISTRIBUTED_LIST,
|
||||
DOCTOR,
|
||||
FACTORY,
|
||||
LOCATION,
|
||||
@@ -29,5 +36,6 @@ export {
|
||||
PLANS,
|
||||
PRODUCT,
|
||||
REGIONS,
|
||||
SUPPORT,
|
||||
TOUR_PLAN,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user