Skip to content

Send and receive SMS messages using your Android phone programmatically via a simple HTTP API

Fetch data on mounted

Acho Arnoldbe58689d8fd0
diff --git a/web/pages/oss-friends/index.vue b/web/pages/oss-friends/index.vue
index b8b5d6f9..20aacacc 100644
--- a/web/pages/oss-friends/index.vue
+++ b/web/pages/oss-friends/index.vue
@@ -63,17 +63,20 @@ export default Vue.extend({
mdiOpenInNew,
apps: [] as AppData[],
}),
- async fetch() {
- const response = await fetch(
- 'https://corsproxy.io/?https%3A%2F%2Fformbricks.com%2Fapi%2Foss-friends',
- ).then((res) => res.json())
- this.apps = response.data
- },
head() {
return {
title: 'Open Source Friends - httpSMS',
}
},
+ mounted() {
+ fetch(
+ 'https://corsproxy.io/?https%3A%2F%2Fformbricks.com%2Fapi%2Foss-friends',
+ )
+ .then((res) => res.json())
+ .then((response: any) => {
+ this.apps = response.data
+ })
+ },
})
</script>