Skip to content

Commit 4c5ba0b

Browse files
committed
deploy button
1 parent 8cc2d0f commit 4c5ba0b

File tree

3 files changed

+18
-12
lines changed

3 files changed

+18
-12
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"dev": "yarn serve"
1010
},
1111
"dependencies": {
12-
"axios": "^0.21.0",
12+
"axios": "^0.21.1",
1313
"canvas-confetti": "^1.3.2",
1414
"core-js": "^3.6.5",
1515
"jspdf": "^2.1.1",

src/App.vue

+13-7
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,17 @@
1+
<script>
2+
import axios from 'axios'
3+
4+
export default {
5+
methods: {
6+
callLocalHost() {
7+
axios.post('http://localhost:8888/.netlify/functions/cors-lab')
8+
}
9+
}
10+
}
11+
</script>
12+
113
<template>
2-
<div id="nav">
3-
<router-link to="/">Home</router-link> |
4-
<router-link to="/about">About</router-link> |
5-
<router-link to="/lab">Lab</router-link> |
6-
<router-link to="/space-game">Space Game</router-link>
7-
</div>
8-
<router-view />
14+
<button @click="callLocalHost">Call Local Host</button>
915
</template>
1016

1117
<style>

yarn.lock

+4-4
Original file line numberDiff line numberDiff line change
@@ -1970,10 +1970,10 @@ aws4@^1.8.0:
19701970
resolved "https://registry.yarnpkg.com/aws4/-/aws4-1.10.0.tgz#a17b3a8ea811060e74d47d306122400ad4497ae2"
19711971
integrity sha512-3YDiu347mtVtjpyV3u5kVqQLP242c06zwDOgpeRnybmXlYYsLbtTrUBUm8i8srONt+FWobl5aibnU1030PeeuA==
19721972

1973-
axios@^0.21.0:
1974-
version "0.21.0"
1975-
resolved "https://registry.yarnpkg.com/axios/-/axios-0.21.0.tgz#26df088803a2350dff2c27f96fef99fe49442aca"
1976-
integrity sha512-fmkJBknJKoZwem3/IKSSLpkdNXZeBu5Q7GA/aRsr2btgrptmSCxi2oFjZHqGdK9DoTil9PIHlPIZw2EcRJXRvw==
1973+
axios@^0.21.1:
1974+
version "0.21.1"
1975+
resolved "https://registry.yarnpkg.com/axios/-/axios-0.21.1.tgz#22563481962f4d6bde9a76d516ef0e5d3c09b2b8"
1976+
integrity sha512-dKQiRHxGD9PPRIUNIWvZhPTPpl1rf/OxTYKsqKUDjBwYylTvV7SjSHJb9ratfyzM6wCdLCOYLzs73qpg5c4iGA==
19771977
dependencies:
19781978
follow-redirects "^1.10.0"
19791979

0 commit comments

Comments
 (0)