mirror of
https://github.com/Lissy93/dashy.git
synced 2024-11-30 20:26:56 +03:00
✏️ Small refactor endpoint into single string
This commit is contained in:
parent
38ad08a101
commit
86b56f6b48
@ -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 New Issue
Block a user