42 lines
1.1 KiB
TypeScript
42 lines
1.1 KiB
TypeScript
const BASE_URL =
|
|
process.env.NEXT_PUBLIC_API_URL || "https://api.meridynpharma.com";
|
|
|
|
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,
|
|
LOGIN_USER,
|
|
OBJECT,
|
|
ORDER,
|
|
PHARMACY,
|
|
PLANS,
|
|
PRODUCT,
|
|
REGIONS,
|
|
SUPPORT,
|
|
TOUR_PLAN,
|
|
};
|