get function

This commit is contained in:
aminamos
2020-04-05 03:32:53 -07:00
parent 540ea11029
commit 9c97dca644

View File

@@ -1,6 +1,10 @@
import setText, {appendText, showWaiting, hideWaiting} from "./results.mjs"; import setText, {appendText, showWaiting, hideWaiting} from "./results.mjs";
export function get() { export function get() {
axios.get("http://localhost:3000/orders/1")
.then(({data}) => {
setText(JSON.stringify(data))
})
} }
export function getCatch() { export function getCatch() {