Edit Readme and info
continuous-integration/drone/push Build is passing

This commit is contained in:
Argiris Deligiannidis
2024-04-14 23:07:07 +03:00
parent ac7ac4f922
commit 8f840fd1c1
4 changed files with 64 additions and 5 deletions
+7
View File
@@ -48,6 +48,13 @@ export default defineNuxtComponent({
getWeatherIcon(wmoCode) {
return utils.getWeatherIcon(wmoCode);
},
/**
* Adds a new location based on the input provided.
* if the location already exists in the database, it will not be added.
*
*
* @param {Object} input - The input object containing location details.
*/
async addLocation(input) {
this.apiURL = `${this.apiBaseURL}/locations`;
if (input) {