get function
This commit is contained in:
@@ -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() {
|
||||||
|
|||||||
Reference in New Issue
Block a user