Main exception renamed to WizamartException

This commit is contained in:
2025-10-27 21:55:05 +01:00
parent 1e0cbf5927
commit 5c80ba17c5
15 changed files with 126 additions and 179 deletions

View File

@@ -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;