mirror of
https://github.com/Lissy93/dashy.git
synced 2025-12-14 12:36:16 +01:00
✏️ Small refactor endpoint into single string
This commit is contained in:
parent
38ad08a101
commit
86b56f6b48
1 changed files with 3 additions and 3 deletions
|
|
@ -61,10 +61,10 @@ export default {
|
|||
return '';
|
||||
},
|
||||
endpoint() {
|
||||
return `${`${widgetApiEndpoints.holidays}`
|
||||
return `${widgetApiEndpoints.holidays}`
|
||||
+ `&fromDate=${this.startDate}&toDate=${this.endDate}`
|
||||
+ `&country=${this.country}&holidayType=${this.holidayType}`}${
|
||||
this.region}`;
|
||||
+ `&country=${this.country}&holidayType=${this.holidayType}`
|
||||
+ `${this.region}`;
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
|
|
|
|||
Loading…
Reference in a new issue