first commit

This commit is contained in:
2024-05-16 16:11:40 +02:00
commit fe9a8e2b20
32 changed files with 8427 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
const fetch = require('node-fetch');
class Jucundus {
constructor() {
this.url = 'http://localhost:3000/api';
}
setSaleStatus(status) {
fetch(ApiURL+'/sale/setSaleStatus/'+status)
.then(response => response.json())
.then(data => {
res.json(data);
})
.catch(error => {
console.error(error);
});
}
}
module.exports = Jucundus
View File