From ba9a3493e8589e3983c9be2e2f8058e21d16dd25 Mon Sep 17 00:00:00 2001 From: KungKurt Date: Sun, 23 Feb 2025 13:57:58 +0100 Subject: [PATCH] created a puckoapi instance --- scripts/puckoapi/puckoapi.js | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 scripts/puckoapi/puckoapi.js 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