Main exception renamed to WizamartException
This commit is contained in:
@@ -119,7 +119,7 @@ function adminVendorTheme() {
|
||||
|
||||
try {
|
||||
const startTime = Date.now();
|
||||
const response = await apiClient.get(`/api/v1/admin/vendors/${this.vendorCode}`);
|
||||
const response = await apiClient.get(`/admin/vendors/${this.vendorCode}`);
|
||||
const duration = Date.now() - startTime;
|
||||
|
||||
this.vendor = response;
|
||||
@@ -139,7 +139,7 @@ function adminVendorTheme() {
|
||||
|
||||
try {
|
||||
const startTime = Date.now();
|
||||
const response = await apiClient.get(`/api/v1/admin/vendor-themes/${this.vendorCode}`);
|
||||
const response = await apiClient.get(`/admin/vendor-themes/${this.vendorCode}`);
|
||||
const duration = Date.now() - startTime;
|
||||
|
||||
if (response) {
|
||||
@@ -184,7 +184,7 @@ function adminVendorTheme() {
|
||||
|
||||
try {
|
||||
const startTime = Date.now();
|
||||
const response = await apiClient.get('/api/v1/admin/vendor-themes/presets');
|
||||
const response = await apiClient.get('/admin/vendor-themes/presets');
|
||||
const duration = Date.now() - startTime;
|
||||
|
||||
this.presets = response.presets || [];
|
||||
@@ -207,7 +207,7 @@ function adminVendorTheme() {
|
||||
try {
|
||||
const startTime = Date.now();
|
||||
const response = await apiClient.post(
|
||||
`/api/v1/admin/vendor-themes/${this.vendorCode}/preset/${presetName}`
|
||||
`/admin/vendor-themes/${this.vendorCode}/preset/${presetName}`
|
||||
);
|
||||
const duration = Date.now() - startTime;
|
||||
|
||||
@@ -257,7 +257,7 @@ function adminVendorTheme() {
|
||||
try {
|
||||
const startTime = Date.now();
|
||||
const response = await apiClient.put(
|
||||
`/api/v1/admin/vendor-themes/${this.vendorCode}`,
|
||||
`/admin/vendor-themes/${this.vendorCode}`,
|
||||
this.themeData
|
||||
);
|
||||
const duration = Date.now() - startTime;
|
||||
|
||||
Reference in New Issue
Block a user