Files
LuckyDiamond/luckydiamond/src/assets/js/moneyoperation/Claimmoney.js
2023-12-13 17:29:29 +03:00

14 lines
438 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
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', { request: amount })
console.log(response)
return response
}
catch (e) {
console.error('Error in ClaimMoney method: ', e)
}
}