diff --git a/luckydiamond/src/assets/js/moneyoperation/Claimmoney.js b/luckydiamond/src/assets/js/moneyoperation/Claimmoney.js new file mode 100644 index 0000000..7d73f53 --- /dev/null +++ b/luckydiamond/src/assets/js/moneyoperation/Claimmoney.js @@ -0,0 +1,14 @@ +import { Post } from '../rest/RestMethods.js'; +// import { BackendApiUrl } from '@/properties/Сonfig.js'; + +export async function GettingMoneyOperation(amount) { + try { + const response = await Post('https://spsystemcore20231122004605.azurewebsites.net/api/Payment', amount) + + console.log(response) + return response + } + catch (e) { + console.error('Error in ClaimMoney method: ', e) + } +} \ No newline at end of file diff --git a/luckydiamond/src/components/PaymentsModal.vue b/luckydiamond/src/components/PaymentsModal.vue index 26847cb..c8cbfde 100644 --- a/luckydiamond/src/components/PaymentsModal.vue +++ b/luckydiamond/src/components/PaymentsModal.vue @@ -45,6 +45,7 @@