10 lines
298 B
JavaScript
10 lines
298 B
JavaScript
const axios = require('axios').default;
|
|
|
|
const loginCheckEndpoint = 'https://ez-pp.farm/login/check';
|
|
|
|
const performLogin = async (username, password) => {
|
|
const result = await axios.post(loginCheckEndpoint, { username, password });
|
|
return result.data;
|
|
}
|
|
|
|
module.exports = { performLogin }; |