Skip to content
Snippets Groups Projects
Commit c4b37094 authored by Wortman, Elliot (UG - Comp Sci & Elec Eng)'s avatar Wortman, Elliot (UG - Comp Sci & Elec Eng)
Browse files

API call from / to operate from Flask root

parent 587a5235
No related branches found
No related tags found
No related merge requests found
...@@ -21,7 +21,7 @@ export default { ...@@ -21,7 +21,7 @@ export default {
methods: { methods: {
getPastValues() { getPastValues() {
axios axios
.get('http://127.0.0.1:5000/past-values') .get('/past-values')
.then((response) => { .then((response) => {
this.npkData = response.data.npkData this.npkData = response.data.npkData
this.thmData = response.data.thmData this.thmData = response.data.thmData
......
...@@ -14,7 +14,7 @@ export default { ...@@ -14,7 +14,7 @@ export default {
methods: { methods: {
getValues() { getValues() {
axios axios
.get('http://127.0.0.1:5000/values') .get('/values')
.then((response) => { .then((response) => {
this.values = response.data this.values = response.data
}) })
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment