cor docker Dev/Prod
This commit is contained in:
@@ -1,20 +1,21 @@
|
||||
const fetch = require('node-fetch');
|
||||
const { config } = require("../config.js");
|
||||
|
||||
class Jucundus {
|
||||
constructor() {
|
||||
this.url = 'http://localhost:3000/api';
|
||||
this.url = config.jucundus+'/api';
|
||||
}
|
||||
|
||||
setSaleStatus(status) {
|
||||
fetch(ApiURL+'/sale/setSaleStatus/'+status)
|
||||
.then(response => response.json())
|
||||
.then(data => {
|
||||
res.json(data);
|
||||
})
|
||||
.catch(error => {
|
||||
console.error(error);
|
||||
});
|
||||
}
|
||||
// setSaleStatus(status) {
|
||||
// fetch(ApiURL+'/sale/setSaleStatus/'+status)
|
||||
// .then(response => response.json())
|
||||
// .then(data => {
|
||||
// res.json(data);
|
||||
// })
|
||||
// .catch(error => {
|
||||
// console.error(error);
|
||||
// });
|
||||
// }
|
||||
}
|
||||
|
||||
module.exports = Jucundus
|
||||
Reference in New Issue
Block a user