app.get("/api/services", async (req, res) => {
let service = await services.getAllServices();
res.setHeader('Access-Control-Allow-Origin', '*');
res.setHeader('Access-Control-Allow-Headers', 'origin, content-type, accept');
if(service){
res.send(service);
}
else{
res.status(404).send();
}
})
let res = await fetch("http://127.0.0.1:3000/api/services");
console.log(res.json());