|
|
|
@ -1,3 +1,5 @@
|
|
|
|
|
#!/usr/bin/env node
|
|
|
|
|
|
|
|
|
|
import fetch from "node-fetch";
|
|
|
|
|
const APIURI = "https://fi.jamix.cloud/apps/menuservice/rest/haku/menu/92225/1?lang=fi"
|
|
|
|
|
var todayDate = new Date().toISOString().slice(0, 10).replaceAll('-', '');
|
|
|
|
@ -20,4 +22,4 @@ function getFood(data) {
|
|
|
|
|
|
|
|
|
|
fetch(APIURI)
|
|
|
|
|
.then((response) => response.json())
|
|
|
|
|
.then((data) => getFood(data).map((food) => console.log(food)));
|
|
|
|
|
.then((data) => getFood(data).map((food) => console.log(food)));
|
|
|
|
|