add missing api call to rest.js

This commit is contained in:
Nuwan 2024-08-15 13:58:36 +05:30
parent 3945e97319
commit f9aee04dd5
1 changed files with 8 additions and 0 deletions

View File

@ -433,6 +433,14 @@ export const addJamtrackToShoppingCart = (options = {}) => {
});
};
export const getAppFeatures = (env) => {
return new Promise((resolve, reject) => {
apiFetch(`/app_features?env=${env}`)
.then(response => resolve(response))
.catch(error => reject(error));
});
}
export const getShoppingCart = () => {
return new Promise((resolve, reject) => {
apiFetch(`/shopping_carts`)