File tree 3 files changed +18
-12
lines changed
3 files changed +18
-12
lines changed Original file line number Diff line number Diff line change 9
9
"dev" : " yarn serve"
10
10
},
11
11
"dependencies" : {
12
- "axios" : " ^0.21.0 " ,
12
+ "axios" : " ^0.21.1 " ,
13
13
"canvas-confetti" : " ^1.3.2" ,
14
14
"core-js" : " ^3.6.5" ,
15
15
"jspdf" : " ^2.1.1" ,
Original file line number Diff line number Diff line change
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
+
1
13
<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 >
9
15
</template >
10
16
11
17
<style >
Original file line number Diff line number Diff line change @@ -1970,10 +1970,10 @@ aws4@^1.8.0:
1970
1970
resolved "https://registry.yarnpkg.com/aws4/-/aws4-1.10.0.tgz#a17b3a8ea811060e74d47d306122400ad4497ae2"
1971
1971
integrity sha512-3YDiu347mtVtjpyV3u5kVqQLP242c06zwDOgpeRnybmXlYYsLbtTrUBUm8i8srONt+FWobl5aibnU1030PeeuA==
1972
1972
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 ==
1977
1977
dependencies :
1978
1978
follow-redirects "^1.10.0"
1979
1979
You can’t perform that action at this time.
0 commit comments