diff --git a/scripts/puckoapi/puckoapi.js b/scripts/puckoapi/puckoapi.js new file mode 100644 index 0000000..1e4f85e --- /dev/null +++ b/scripts/puckoapi/puckoapi.js @@ -0,0 +1,10 @@ +class PuckoPruttApi { + constructor() { + this.apiUrl = "api.puckoprutt.tech" + this.schema = this.apiUrl + "/schema" + } + + dagens_lunch(spider) { + return fetch(this.apiUrl + "/dagens_lunch/" + spider, {method: "GET"}); + } +} \ No newline at end of file