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