created a puckoapi instance

This commit is contained in:
KungKurt 2025-02-23 13:57:58 +01:00
parent 05b035dc9c
commit ba9a3493e8

View File

@ -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"});
}
}