This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user