This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module.exports = { | |
| devServer: { | |
| // This will forward any request that does not match a static file to localhost:3000 | |
| proxy: 'http://localhost:3000' | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| async mounted() { | |
| // Use a relative path to call the API now since our request is proxied. | |
| const response = await axios.get("/quote") | |
| this.quote = response.data.quote; | |
| } |
OlderNewer