From 9c97dca644f5320f607ae5a3413603d65315c886 Mon Sep 17 00:00:00 2001 From: aminamos <26092352+aminamos@users.noreply.github.com> Date: Sun, 5 Apr 2020 03:32:53 -0700 Subject: [PATCH] get function --- src/consuming.mjs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/consuming.mjs b/src/consuming.mjs index 8090053..514d46e 100644 --- a/src/consuming.mjs +++ b/src/consuming.mjs @@ -1,6 +1,10 @@ import setText, {appendText, showWaiting, hideWaiting} from "./results.mjs"; export function get() { + axios.get("http://localhost:3000/orders/1") + .then(({data}) => { + setText(JSON.stringify(data)) + }) } export function getCatch() {