feat: move getImage response to admin
This commit is contained in:
@@ -1,6 +1,10 @@
|
||||
export function getThumb(imageUrl) {
|
||||
const route = 'extension/tgshop/handle';
|
||||
const url = new URL(`${window.TeleCart.shop_base_url}/index.php?route=${route}&api_action=getImage&path=${imageUrl}&size=100x100`);
|
||||
const url = new URL(`${window.TeleCart.shop_base_url}/admin/index.php`);
|
||||
url.searchParams.set('route', 'extension/module/tgshop/handle');
|
||||
url.searchParams.set('api_action', 'getImage');
|
||||
url.searchParams.set('path', imageUrl);
|
||||
url.searchParams.set('size', '100x100');
|
||||
url.searchParams.set('user_token', window.TeleCart.user_token);
|
||||
return url.toString();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user