| Server IP : 167.235.67.158 / Your IP : 216.73.217.85 Web Server : Apache System : Linux ubuntu-8gb-nbg1-1 6.8.0-111-generic #111-Ubuntu SMP PREEMPT_DYNAMIC Sat Apr 11 23:16:02 UTC 2026 x86_64 User : upstairsbar.co.uk ( 982) PHP Version : 8.3.6 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /var/www/api.pda.the-word.com/common/ |
Upload File : |
const axios = require('axios');
const DEFAULT_URL = 'https://drivebuddi.the-word.com/services/clientservice.php';
async function postForm(payload) {
const url = process.env.LEGACY_CLIENTSERVICE_URL || DEFAULT_URL;
const data = new URLSearchParams(payload);
const response = await axios.post(url, data.toString(), {
headers: {
'content-type': 'application/x-www-form-urlencoded'
},
timeout: 30000
});
return response.data;
}
async function callLegacy(fn, payload = {}) {
return postForm({
fn,
...payload
});
}
module.exports = {
callLegacy
};