created a puckoapi instance
This commit is contained in:
parent
05b035dc9c
commit
ba9a3493e8
10
scripts/puckoapi/puckoapi.js
Normal file
10
scripts/puckoapi/puckoapi.js
Normal 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"});
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user