mirror of
https://github.com/Lissy93/dashy.git
synced 2025-07-26 15:14:22 +02:00
✏️ Small refactor endpoint into single string
This commit is contained in:
parent
38ad08a101
commit
86b56f6b48
@ -61,10 +61,10 @@ export default {
|
|||||||
return '';
|
return '';
|
||||||
},
|
},
|
||||||
endpoint() {
|
endpoint() {
|
||||||
return `${`${widgetApiEndpoints.holidays}`
|
return `${widgetApiEndpoints.holidays}`
|
||||||
+ `&fromDate=${this.startDate}&toDate=${this.endDate}`
|
+ `&fromDate=${this.startDate}&toDate=${this.endDate}`
|
||||||
+ `&country=${this.country}&holidayType=${this.holidayType}`}${
|
+ `&country=${this.country}&holidayType=${this.holidayType}`
|
||||||
this.region}`;
|
+ `${this.region}`;
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user